]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only actively change focus if this is the current container
authorMichael Stapelberg <michael+x200@stapelberg.de>
Sun, 15 Mar 2009 19:52:43 +0000 (20:52 +0100)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Sun, 15 Mar 2009 19:52:43 +0000 (20:52 +0100)
src/handlers.c

index 343fe077873d0e0c7563b94d9045b8e89f0491a5..00a7b06d26a03e10001b25e20352e79312d6ed71 100644 (file)
@@ -577,7 +577,9 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
                 SLIST_FOREACH(focus_client, &(con->workspace->focus_stack), focus_clients)
                         if (focus_client->container == con) {
                                 con->currently_focused = focus_client;
-                                set_focus(conn, focus_client);
+                                /* Only if this is the active container, we need to really change focus */
+                                if (con == CUR_CELL)
+                                        set_focus(conn, focus_client);
                                 break;
                         }
         }