问题
Does X have the notion of non-clipped child windows? The behavior in Windows and OSX for these is:
- the parent always stays behind its children
- the children are closed automatically when the parent is closed
- 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:
- Yes ( you can override this if you implement your own composite manager )
- Yes, unless window is added to a "save set".
- 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