sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 20ffe545bab3fe518d8d1be00949943f7d39cfe0
parent 20c91335f6ba515e43b444fafd52b822bd460eda
Author: llyyr <llyyr.public@gmail.com>
Date:   Tue, 27 Jun 2023 22:50:25 +0530

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.

Diffstat:
Mswaybar/input.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swaybar/input.c b/swaybar/input.c @@ -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); // Since we're asking Sway to switch to 'new', it should become visible.