fix(bspwm): use monitor focus only when pinned

This commit is contained in:
NBonaparte 2018-03-31 14:03:26 -07:00 committed by Patrick Ziegler
parent b5129ae0c4
commit 067aac1ac7

View file

@ -493,15 +493,15 @@ namespace modules {
if (m_pinworkspaces) {
modifier = ".local";
}
for (const auto& mon : m_monitors) {
if (m_bar.monitor->match(mon->name, false) && !mon->focused) {
send_command("monitor -f " + mon->name, "Sending monitor focus command to ipc handler");
break;
for (const auto& mon : m_monitors) {
if (m_bar.monitor->match(mon->name, false) && !mon->focused) {
send_command("monitor -f " + mon->name, "Sending monitor focus command to ipc handler");
break;
}
}
}
send_command("desktop -f " + scrolldir + modifier, "Sending desktop " + scrolldir + " command to ipc handler");
return true;