简体   繁体   English

X11模态对话框

[英]X11 modal dialog

How can I create a modal dialog in X11 using Xlib? 如何使用Xlib在X11中创建模式对话框?

A modal dialog is aa window that stays on top of other windows of the app (like transient windows do) and also refuses to give focus to other windows of the app. 模态对话框是一个窗口,它位于应用程序其他窗口的顶部(就像瞬态窗口一样),并且也拒绝将焦点放在该应用程序的其他窗口上。

In Windows, modality is also signaled by flashing the titlebar of the modal window when trying to steal the focus from it. 在Windows中,当尝试从模式窗口中窃取焦点时,还会通过闪烁模式窗口的标题栏来表示模式。

Thanks. 谢谢。

您需要设置_NET_WM_STATE属性(类型为“原子列表”)以包含_NET_WM_STATE,请参阅EWMP规范中对_NET_WM_STATE的引用 (还需要正确设置WM_TRANSIENT_FOR)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM