]> git.sur5r.net Git - i3/i3/blobdiff - src/x.c
Update ewmh focused only when new focus is different (#3496)
[i3/i3] / src / x.c
diff --git a/src/x.c b/src/x.c
index 0fc6e714e5ab27f28c1ae929ed6849ceb4adbb50..5b54d1457de1829590e8a16f16db8a7dd822aeac 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -105,6 +105,10 @@ static con_state *state_for_frame(xcb_window_t window) {
  *
  */
 static void change_ewmh_focus(xcb_window_t new_focus, xcb_window_t old_focus) {
+    if (new_focus == old_focus) {
+        return;
+    }
+
     ewmh_update_active_window(new_focus);
 
     if (new_focus != XCB_WINDOW_NONE) {