X11 non-clipped child windows

时光毁灭记忆、已成空白 提交于 2020-01-03 17:31:28

问题


Does X have the notion of non-clipped child windows? The behavior in Windows and OSX for these is:

  1. the parent always stays behind its children
  2. the children are closed automatically when the parent is closed
  3. the children follow the parent when moving

If the answer is no, then I can emulate 2 and 3 but how about 1?

Thanks,
Cosmin.


回答1:


The closest thing to overlapped non-clipped child windows in X is the window property WM_TRANSIENT_FOR. This will create a window that:

  • will not appear on the taskbar
  • will not have minimize and maximize buttons
  • will be minimized along with its transient-for window
  • will always stay on top of its transient-for window (most important)



回答2:


  1. Yes ( you can override this if you implement your own composite manager )
  2. Yes, unless window is added to a "save set".
  3. Yes ( but again with your own composite manager you can change visual mapping of [content of all windows hierarchy] -> [screen] any way you want )


来源:https://stackoverflow.com/questions/31225743/x11-non-clipped-child-windows

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