mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
swaybar: don't set current workspace as not visible
When `wrap_scroll yes` is configured and there's only one workspace open, swaybar will mark it as not visible if the user scrolls on it and eventually incorrectly fail the `active->visible` assert. Fix this by making sure that new and current workspace aren't the same.
This commit is contained in:
parent
20c91335f6
commit
20ffe545ba
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ static void workspace_next(struct swaybar *bar, struct swaybar_output *output,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new) {
|
if (new && new != active) {
|
||||||
ipc_send_workspace_command(bar, new->name);
|
ipc_send_workspace_command(bar, new->name);
|
||||||
|
|
||||||
// Since we're asking Sway to switch to 'new', it should become visible.
|
// Since we're asking Sway to switch to 'new', it should become visible.
|
||||||
|
|
Loading…
Reference in a new issue