mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
set extended wm hint _NET_WM_WINDOW_TYPE to _UTILITY
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@509 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
3ad791ff22
commit
d7f669a00d
16
src/x11.c
16
src/x11.c
@ -250,6 +250,22 @@ void init_window(int own_window, int w, int h, int l, int set_trans, int back_co
|
|||||||
(unsigned char *) &prop,
|
(unsigned char *) &prop,
|
||||||
1);
|
1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* PHK: Set EWMH _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_UTILITY.
|
||||||
|
This addresses the issue where conky can disappear under the desktop
|
||||||
|
while running in its own window with property on_bottom=yes and the
|
||||||
|
desktop gets raised over it. As a utility window, this wont happen.
|
||||||
|
*/
|
||||||
|
a = XInternAtom(display, "_NET_WM_WINDOW_TYPE", True);
|
||||||
|
if (a != None) {
|
||||||
|
Atom prop = XInternAtom(display, "_NET_WM_WINDOW_TYPE_UTILITY", True);
|
||||||
|
XChangeProperty(display, window.window, a,
|
||||||
|
XA_ATOM, 32,
|
||||||
|
PropModeReplace,
|
||||||
|
(unsigned char *) &prop,
|
||||||
|
1);
|
||||||
|
}
|
||||||
|
|
||||||
if(l) {
|
if(l) {
|
||||||
/* make sure the layer is on the bottom */
|
/* make sure the layer is on the bottom */
|
||||||
a = XInternAtom(display, "_WIN_LAYER", True);
|
a = XInternAtom(display, "_WIN_LAYER", True);
|
||||||
|
Loading…
Reference in New Issue
Block a user