From 01fc545e096052dee2984fbbc985727afe38fca3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 23 Jul 2018 07:51:42 -0600 Subject: [PATCH] fix(i3): Play nice with workspace_auto_back_and_forth (#1312) This makes polybar play nice with the i3wm feature `workspace_auto_back_and_forth`, and it is harmless when that option isn't set. --- src/modules/i3.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/i3.cpp b/src/modules/i3.cpp index 62ee8ca9..1c636f05 100644 --- a/src/modules/i3.cpp +++ b/src/modules/i3.cpp @@ -223,10 +223,8 @@ namespace modules { if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) { cmd.erase(0, strlen(EVENT_CLICK)); - if (i3_util::focused_workspace(conn)->name != cmd) { - m_log.info("%s: Sending workspace focus command to ipc handler", name()); - conn.send_command("workspace " + cmd); - } + m_log.info("%s: Sending workspace focus command to ipc handler", name()); + conn.send_command("workspace " + cmd); return true; }