From 6d0111264d54c10c807f29ced69014c9be93d1ff 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 e970969b..a4a1b195 100644 --- a/ewmh.c +++ b/ewmh.c @@ -444,6 +444,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.