From 3b2af69bba2079617528da71d5e3b0e644ab3483 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 3 May 2014 12:40:17 -0400 Subject: also ignore other duplicate focus events --- src/window-xlib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/window-xlib.c b/src/window-xlib.c index 7f8fa8e..8065981 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -797,6 +797,13 @@ static void runes_window_backend_handle_focus_event( return; } + if (e->type == FocusIn && !t->unfocused) { + return; + } + if (e->type == FocusOut && t->unfocused) { + return; + } + runes_window_backend_clear_urgent(t); if (e->type == FocusIn) { t->unfocused = 0; -- cgit v1.2.3-54-g00ecf