client: delete _AWESOME_PROPERTIES on unmanage

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-28 11:46:51 +02:00
parent fedab2270d
commit 2af9121ca2
1 changed files with 8 additions and 1 deletions

View File

@ -447,7 +447,6 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen)
if(u_size_hints) if(u_size_hints)
xcb_free_size_hints(u_size_hints); xcb_free_size_hints(u_size_hints);
} }
/** Compute client geometry with respect to its geometry hints. /** Compute client geometry with respect to its geometry hints.
@ -669,6 +668,10 @@ void
client_unmanage(client_t *c) client_unmanage(client_t *c)
{ {
tag_array_t *tags = &globalconf.screens[c->screen].tags; 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 */ /* call hook */
luaA_client_userdata_new(globalconf.L, c); luaA_client_userdata_new(globalconf.L, c);
@ -705,6 +708,10 @@ client_unmanage(client_t *c)
ewmh_update_net_client_list(c->phys_screen); 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); p_delete(&c);
} }