ewmh: fix various client list updates

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-17 23:20:03 +02:00
parent e0905b2183
commit 1cfc00f605
1 changed files with 6 additions and 3 deletions

View File

@ -205,6 +205,7 @@ client_unfocus(client_t *c)
focus_client_push(NULL);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
ewmh_update_net_active_window(c->phys_screen);
}
/** Ban client and unmap it.
@ -395,12 +396,12 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen)
/* Push client in stack */
client_raise(c);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
ewmh_update_net_client_list(c->phys_screen);
/* update window title */
client_updatetitle(c);
ewmh_update_net_client_list(c->phys_screen);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
/* call hook */
luaA_client_userdata_new(c);
luaA_dofunction(globalconf.L, globalconf.hooks.manage, 1);
@ -662,6 +663,8 @@ client_unmanage(client_t *c)
titlebar_unref(&c->titlebar);
}
ewmh_update_net_client_list(c->phys_screen);
p_delete(&c);
}