From 2af9121ca226af824cc0acc51c8bed24f7ff295d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 28 Jun 2008 11:46:51 +0200 Subject: [PATCH] client: delete _AWESOME_PROPERTIES on unmanage Signed-off-by: Julien Danjou --- client.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index e011bbbe..c1ef9896 100644 --- a/client.c +++ b/client.c @@ -447,7 +447,6 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen) if(u_size_hints) xcb_free_size_hints(u_size_hints); - } /** Compute client geometry with respect to its geometry hints. @@ -669,6 +668,10 @@ void client_unmanage(client_t *c) { tag_array_t *tags = &globalconf.screens[c->screen].tags; + xutil_intern_atom_request_t awesome_properties_q; + xcb_atom_t awesome_properties; + + awesome_properties_q = xutil_intern_atom(globalconf.connection, &globalconf.atoms, "_AWESOME_PROPERTIES"); /* call hook */ luaA_client_userdata_new(globalconf.L, c); @@ -705,6 +708,10 @@ client_unmanage(client_t *c) ewmh_update_net_client_list(c->phys_screen); + /* delete properties */ + awesome_properties = xutil_intern_atom_reply(globalconf.connection, &globalconf.atoms, awesome_properties_q); + xcb_delete_property(globalconf.connection, c->win, awesome_properties); + p_delete(&c); }