From: Michael Stapelberg Date: Sat, 8 Aug 2009 19:45:29 +0000 (+0200) Subject: Bugfix: Fix focused but inactive window color when using multiple monitors X-Git-Tag: 3.c~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51df9003125a17977766434031280c8befe00da1;p=i3%2Fi3 Bugfix: Fix focused but inactive window color when using multiple monitors --- diff --git a/src/layout.c b/src/layout.c index 3f350d88..b1fee1b0 100644 --- a/src/layout.c +++ b/src/layout.c @@ -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);