diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-03 12:40:17 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-03 12:40:17 -0400 |
commit | 3b2af69bba2079617528da71d5e3b0e644ab3483 (patch) | |
tree | 7b62cd54b14acd064916ddca069a749ab942822c | |
parent | 8033df9414b0e3512fa816c0d8433f94d135465f (diff) | |
download | runes-3b2af69bba2079617528da71d5e3b0e644ab3483.tar.gz runes-3b2af69bba2079617528da71d5e3b0e644ab3483.zip |
also ignore other duplicate focus events
-rw-r--r-- | src/window-xlib.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |