xlibtitlebarwindow-managersewmhicccm

How to determine whether a window has an embedded title bar?


I'm writing a window manager with xlib. I want to implement the following functionality: If a window has embedded titlebar, then window manager won't add WM titlebar for this window. So I'm wondering how to determine whether a window has an embedded titlebar?

I've searched in ICCCM and EWMH, and searched in search engines with xlib+"embedded titlebar" as keywords, but couldn't find a useful info. I found MotifWmHints should implement it, but this is not standard way. It's there any way with ICCCM or EWMH ?


Solution

  • _MWM_HINTS property has a member name decorations. We can check its value to determine whether a window want decorations. if it don't want decorations, it mean window has an embedded titlebar usually. Detail:https://fossies.org/linux/motif/lib/Xm/MwmUtil.h