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 <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2010-06-13 08:57:31 +02:00 committed by Julien Danjou
parent 03f949e54f
commit 6d0111264d
1 changed files with 2 additions and 0 deletions

2
ewmh.c
View File

@ -444,6 +444,8 @@ ewmh_client_update_desktop(client_t *c)
c->window, _NET_WM_DESKTOP, CARDINAL, 32, 1, &i); c->window, _NET_WM_DESKTOP, CARDINAL, 32, 1, &i);
return; return;
} }
/* It doesn't have any tags, remove the property */
xcb_delete_property(globalconf.connection, c->window, _NET_WM_DESKTOP);
} }
/** Update the client struts. /** Update the client struts.