]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix focused but inactive window color when using multiple monitors
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Aug 2009 19:45:29 +0000 (21:45 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 8 Aug 2009 19:45:29 +0000 (21:45 +0200)
src/layout.c

index 3f350d882d77b7b2000403809ef6b4fd8e20110f..b1fee1b05b76ecbb992a3010fd9896bbcd137204 100644 (file)
@@ -118,7 +118,7 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw
         } else {
                 if (client->container->currently_focused == client) {
                         /* Distinguish if the window is currently focused… */
-                        if (last_focused == client)
+                        if (last_focused == client && c_ws == client->workspace)
                                 color = &(config.client.focused);
                         /* …or if it is the focused window in a not focused container */
                         else color = &(config.client.focused_inactive);