From 6372f3974cb67a74428aefbfb23b65992ba2b3f2 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Quoc Date: Sun, 20 Mar 2011 12:25:12 +0700 Subject: [PATCH] Fix "flick" when new client is not in current tag --- src/client.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/client.c b/src/client.c index 4d20f41..6fb89ff 100644 --- a/src/client.c +++ b/src/client.c @@ -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)