From fb709aeab39abcb49383e0abbe255609b7113413 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 27 Jan 2017 03:03:57 +0100 Subject: [PATCH] fix(i3): Workspace state when visible on unfocused monitor --- src/modules/i3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/i3.cpp b/src/modules/i3.cpp index 2da43fef..f5a590f3 100644 --- a/src/modules/i3.cpp +++ b/src/modules/i3.cpp @@ -128,10 +128,10 @@ namespace modules { ws_state = state::FOCUSED; } else if (ws->urgent) { ws_state = state::URGENT; - } else if (!ws->visible || (ws->visible && ws->output != m_bar.monitor->name)) { - ws_state = state::UNFOCUSED; - } else { + } else if (ws->visible) { ws_state = state::VISIBLE; + } else { + ws_state = state::UNFOCUSED; } string ws_name{ws->name};