X11/Xlib: Window always on top

前端 未结 4 1277
庸人自扰
庸人自扰 2020-12-30 18:35

A window should stay on top of all other windows. Is this somehow possible with plain x11/xlib? Googling for \"Always on top\" and \"x11\" / \"xlib\" didn\'t return anything

4条回答
  •  灰色年华
    2020-12-30 18:59

    I wrote something like this in Xlib many years ago. It's a few lines of code. When your window is partially obscured you get a VisibilityNotify event, then call XRaiseWindow. Watch out for the case where two of your 'always on top' windows overlap.

提交回复
热议问题