fix(bspwm): use monitor focus only when pinned
This commit is contained in:
parent
b5129ae0c4
commit
067aac1ac7
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue