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.
This commit is contained in:
Tim Smith 2018-07-23 07:51:42 -06:00 committed by Patrick Ziegler
parent 1d6d44f4e9
commit 01fc545e09

View File

@ -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);
}
return true;
}