client: reduce server grabbing time

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-06 14:06:51 +02:00
parent 9cbee5b32e
commit ebb7000cee
1 changed files with 6 additions and 6 deletions

View File

@ -685,18 +685,18 @@ client_unmanage(client_t *c)
XCB_CONFIG_WINDOW_BORDER_WIDTH, XCB_CONFIG_WINDOW_BORDER_WIDTH,
(uint32_t *) &c->oldborder); (uint32_t *) &c->oldborder);
/* remove client everywhere */
client_list_detach(&globalconf.clients, c);
stack_client_delete(c);
for(int i = 0; i < tags->len; i++)
untag_client(c, tags->tab[i]);
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, c->win, ANY_MODIFIER); xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, c->win, ANY_MODIFIER);
window_setstate(c->win, XCB_WM_WITHDRAWN_STATE); window_setstate(c->win, XCB_WM_WITHDRAWN_STATE);
xcb_aux_sync(globalconf.connection); xcb_aux_sync(globalconf.connection);
xcb_ungrab_server(globalconf.connection); xcb_ungrab_server(globalconf.connection);
/* remove client everywhere */
client_list_detach(&globalconf.clients, c);
stack_client_delete(c);
for(int i = 0; i < tags->len; i++)
untag_client(c, tags->tab[i]);
if(c->titlebar) if(c->titlebar)
{ {
simplewindow_delete(&c->titlebar->sw); simplewindow_delete(&c->titlebar->sw);