From 5ece3a6e55a27e7443ac4dea436f4e0cd9da766e Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Fri, 11 Mar 2011 16:43:03 +0100 Subject: [PATCH] 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 --- src/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index 971cdb8..e5c7fb9 100644 --- a/src/event.c +++ b/src/event.c @@ -637,7 +637,8 @@ motionnotify(XMotionEvent *ev) return; if((c = client_gb_win(ev->subwindow))) - client_focus(c); + if (c != sel) + client_focus(c); return; }