+
+ /* 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);
+ }
+