Fix "flick" when new client is not in current tag

This commit is contained in:
Viet Nguyen Quoc 2011-03-20 12:25:12 +07:00 committed by Raphael Khaiat
parent 703974cb00
commit 6372f3974c

View File

@ -898,11 +898,18 @@ client_manage(Window w, XWindowAttributes *wa, Bool ar)
client_attach(c);
client_set_rules(c);
client_get_name(c);
client_raise(c);
setwinstate(c->win, NormalState);
if(c->tag == (uint)seltag[selscreen])
{
client_raise(c);
setwinstate(c->win, NormalState);
}
else
client_hide(c);
ewmh_get_client_list();
client_update_attributes(c);
client_map(c);
if(c->tag == (uint)seltag[selscreen])
client_map(c);
ewmh_manage_window_type(c);
if(ar)