focus_follow_movement caused flickering, fixed.

When using focus_follow_movement, client_focus() should be called only
if the target client is unfocused. Calling client_focus() on every motion
event causes an ugly flickering of the window.

Signed-off-by: Raphael Khaiat <raphael@khaiat.org>
This commit is contained in:
Paride Legovini 2011-03-11 16:43:03 +01:00 committed by Raphael Khaiat
parent 4d39413f56
commit 5ece3a6e55

View File

@ -637,6 +637,7 @@ motionnotify(XMotionEvent *ev)
return; return;
if((c = client_gb_win(ev->subwindow))) if((c = client_gb_win(ev->subwindow)))
if (c != sel)
client_focus(c); client_focus(c);
return; return;