I’ve tried to find all “normal” windows on a linux x11-desktop by using xlib to look for the values of “_NET_WM_STATE” or “_NET_WM_WINDOW_TYPE”, which seems to work for most apps, giving me things like “[‘_NET_WM_WINDOW_TYPE_NORMAL’] for signal-desktop and others. But one of the exceptions is Thunderbird, where I either get no entries at all for the window-type or only things like “_NET_WM_WINDOW_TYPE_UTILITY” or “_NET_WM_WINDOW_TYPE_POPUP_MENU”.
The weird thing is when I use “xprop” in bash, a click on the thunderbird-window prints this: “WM_STATE(WM_STATE): window state: Normal”. So somehow it identifies the window correctly. Can somebody point out what I’m doing wrong?
submitted by /u/goatAlmighty
[link] [comments]
r/learnpython I’ve tried to find all “normal” windows on a linux x11-desktop by using xlib to look for the values of “_NET_WM_STATE” or “_NET_WM_WINDOW_TYPE”, which seems to work for most apps, giving me things like “[‘_NET_WM_WINDOW_TYPE_NORMAL’] for signal-desktop and others. But one of the exceptions is Thunderbird, where I either get no entries at all for the window-type or only things like “_NET_WM_WINDOW_TYPE_UTILITY” or “_NET_WM_WINDOW_TYPE_POPUP_MENU”. The weird thing is when I use “xprop” in bash, a click on the thunderbird-window prints this: “WM_STATE(WM_STATE): window state: Normal”. So somehow it identifies the window correctly. Can somebody point out what I’m doing wrong? submitted by /u/goatAlmighty [link] [comments]
I’ve tried to find all “normal” windows on a linux x11-desktop by using xlib to look for the values of “_NET_WM_STATE” or “_NET_WM_WINDOW_TYPE”, which seems to work for most apps, giving me things like “[‘_NET_WM_WINDOW_TYPE_NORMAL’] for signal-desktop and others. But one of the exceptions is Thunderbird, where I either get no entries at all for the window-type or only things like “_NET_WM_WINDOW_TYPE_UTILITY” or “_NET_WM_WINDOW_TYPE_POPUP_MENU”.
The weird thing is when I use “xprop” in bash, a click on the thunderbird-window prints this: “WM_STATE(WM_STATE): window state: Normal”. So somehow it identifies the window correctly. Can somebody point out what I’m doing wrong?
submitted by /u/goatAlmighty
[link] [comments]