From 65dfdf01ced11aabbea14bf95a1fb10b7ef19743 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 13 Jun 2010 08:57:31 +0200 Subject: [PATCH] Remove _NET_WM_DESKTOP when client got no tags EWMH says that "Window Managers MUST keep this property updated on all windows", but doesn't say anything about clients which got no desktop at all. Removing the property seems to be the best we could do. Signed-off-by: Uli Schlachter Signed-off-by: Julien Danjou --- ewmh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ewmh.c b/ewmh.c index 4c192062c..8c121f94c 100644 --- a/ewmh.c +++ b/ewmh.c @@ -468,6 +468,8 @@ ewmh_client_update_desktop(client_t *c) c->window, _NET_WM_DESKTOP, CARDINAL, 32, 1, &i); return; } + /* It doesn't have any tags, remove the property */ + xcb_delete_property(globalconf.connection, c->window, _NET_WM_DESKTOP); } /** Update the client struts.