From 4df5f910162ffb35614ddc33d978092df43c5daf Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Tue, 7 Mar 2006 05:55:23 +0000 Subject: [PATCH] EWMH sticky git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@551 7f574dfc-610e-0410-a909-a81674777703 --- src/x11.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/x11.c b/src/x11.c index 8cb4ed5a..341fc12a 100644 --- a/src/x11.c +++ b/src/x11.c @@ -321,6 +321,16 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour, c (unsigned char *) &xa_prop, 1); } + + xa = ATOM(_NET_WM_STATE); + if (xa != None) { + Atom xa_prop = ATOM(_NET_WM_STATE_STICKY); + XChangeProperty(display, window.window, xa, + XA_ATOM, 32, + PropModeAppend, + (unsigned char *) &xa_prop, + 1); + } } /* Skip taskbar */