Reduce client_focus call

This commit is contained in:
Martin Duquesnoy
2011-10-10 16:13:40 +02:00
parent 2a9d91af8d
commit e32012a0c3

View File

@@ -201,7 +201,8 @@ event_motionnotify(XEvent *e)
*/ */
if((c = client_gb_win(ev->subwindow)) if((c = client_gb_win(ev->subwindow))
|| (ev->window == t->frame && ((c = client_gb_pos(t, ev->x, ev->y))))) || (ev->window == t->frame && ((c = client_gb_pos(t, ev->x, ev->y)))))
client_focus(c); if(c != c->tag->sel)
client_focus(c);
} }
static void static void