client: delete _AWESOME_PROPERTIES on unmanage
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
fedab2270d
commit
2af9121ca2
9
client.c
9
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue