aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c7
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;