From ebb7000cee0b7511a24864acad2576c09ebe5262 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 6 Aug 2008 14:06:51 +0200 Subject: [PATCH] client: reduce server grabbing time Signed-off-by: Julien Danjou --- client.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client.c b/client.c index 5fb73f70..141526e8 100644 --- a/client.c +++ b/client.c @@ -685,18 +685,18 @@ client_unmanage(client_t *c) XCB_CONFIG_WINDOW_BORDER_WIDTH, (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); window_setstate(c->win, XCB_WM_WITHDRAWN_STATE); xcb_aux_sync(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) { simplewindow_delete(&c->titlebar->sw);