Search code examples
x11xlibxcb

X11 non-clipped child windows


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.


Solution

  • 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)