X11 modal dialog

风流意气都作罢 提交于 2019-12-22 12:20:20

问题


How can I create a modal dialog in X11 using Xlib?

A modal dialog is a a 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.

Thanks.


回答1:


You need to set _NET_WM_STATE property (which is of type "atom list") to include _NET_WM_STATE, see references to _NET_WM_STATE in EWMP spec (also need to set WM_TRANSIENT_FOR correctly)



来源:https://stackoverflow.com/questions/31779316/x11-modal-dialog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!