mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
fix(bspwm): Send monitor local focus commands
This commit is contained in:
parent
ec39859093
commit
60503734ac
1 changed files with 8 additions and 2 deletions
|
@ -437,6 +437,12 @@ namespace modules {
|
|||
}
|
||||
};
|
||||
|
||||
string modifier;
|
||||
|
||||
if (m_pinworkspaces) {
|
||||
modifier = ".local";
|
||||
}
|
||||
|
||||
if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) {
|
||||
cmd.erase(0, strlen(EVENT_CLICK));
|
||||
|
||||
|
@ -451,9 +457,9 @@ namespace modules {
|
|||
m_log.err("%s: Invalid monitor index in command: %s", name(), cmd);
|
||||
}
|
||||
} else if (cmd.compare(0, strlen(EVENT_SCROLL_UP), EVENT_SCROLL_UP) == 0) {
|
||||
send_command("desktop -f next", "Sending desktop next command to ipc handler");
|
||||
send_command("desktop -f next" + modifier, "Sending desktop next command to ipc handler");
|
||||
} else if (cmd.compare(0, strlen(EVENT_SCROLL_DOWN), EVENT_SCROLL_DOWN) == 0) {
|
||||
send_command("desktop -f prev", "Sending desktop prev command to ipc handler");
|
||||
send_command("desktop -f prev" + modifier, "Sending desktop prev command to ipc handler");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue