Waybar/src
Johannes Wienke 4a85ec0f59 fix: match sway workspace order with sway one
Ensure that sway workspaces are always displayed in the same order as
used internally by sway. The previous sorting code always sorted
unnumbered workspaces lexicographically. This isn't the order used by
sway internally. Therefore, commands such as "workspace next" might have
jumped arbitrarily in waybar.

This commit reworks the sorting code such that the internal order is
always obeyed. Additionally, numbered persistent workspaces are inserted
at their natural position at the front of the workspace list while
unnumbered ones are appended. This should match the expectations of
workspace ordering known from sway's behavior.

The changes make the configuration property "numeric-first" unnecessary
as this will always be the case now. There's also no reasonable way
around this behavior now. Otherwise, persistent workspaces would jump
around in the visual representation as soon as they become known to
sway.

Fixes #802
2022-01-07 10:26:27 +01:00
..
modules fix: match sway workspace order with sway one 2022-01-07 10:26:27 +01:00
util fix(rfkill): handle EAGAIN correctly 2021-02-10 08:26:21 -08:00
ALabel.cpp Fix divide by zero (#1303) 2021-10-29 14:12:48 +03:30
AModule.cpp Fix "on-click-backward" when "on-click-forward" is not present 2020-09-26 15:55:06 -04:00
bar.cpp Add `fixed-center` option 2021-12-28 16:00:25 +03:00
client.cpp feat(client): store bar_id argument 2021-11-19 20:28:41 -08:00
config.cpp fix(config): preserve explicit null when merging objects 2021-09-15 22:20:44 +07:00
factory.cpp Add logind feature, with its 'inhibitor' module 2021-12-12 17:52:26 +01:00
group.cpp add group feature 2021-11-25 12:01:17 +01:00
main.cpp Implement support for reloading of config files. 2020-08-28 22:34:24 +10:00