如何找出或记录打开顶级窗口的X11顶级窗口?

发布于 2024-10-01 11:22:49 字数 393 浏览 0 评论 0原文

我正在考虑编写一个 X11 窗口管理器,它可以为 Windows 执行类似 TabKit 的操作 适用于 Firefox 中的选项卡(在其 默认树视图模式)。为此,我需要能够找出窗口是从哪个窗口打开的。有没有一个标准的方法可以找到这个问题?

(我从来没有在不使用 X11 之上的跨平台工具包的情况下完成任何 X11 编程,更不用说编写窗口管理器了。)

I'm thinking of writing an X11 window manager which does for windows something like what TabKit does for tabs in Firefox (in its default tree view mode). To do this, I'd need to be to able to find out which window a window was opened from. Is there a standard way of finding this out?

(I've never done any X11 programming without using a cross-platform toolkit on top of X11, let alone writing a window manager.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哽咽笑 2024-10-08 11:22:49

对于困难的情况 - 应用程序启动其他应用程序,例如文字处理器启动网络浏览器 - 需要应用程序之间的合作来跟踪此信息。 Zeitgeist 项目 已经在寻求跟踪从哪些文档打开了哪些文档,这足够接近,我可能应该工作使用 Zeitgeist(和/或它的 KDE 等效项 - Nepomuk?)来实现这一点。

For the difficult cases - applications launching other applications, e.g. a word processor launching a web browser - there's going to be a need for co-operation between applications to track this information. The Zeitgeist project already seeks to track which documents were opened from which documents, which is close enough that I should probably work with Zeitgeist (and/or its KDE equivalent - Nepomuk?) to get this implemented.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文