sway

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

commit a18d1c55ced3aae973ff787eb5c12ef6bc23d6e7
parent b59139c2394a1da5da7453611d2f791ec285b43c
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Sun, 23 Jun 2019 02:51:07 -0400

ws-output-priority: fix logic issue in find_output

The function used for comparing two output names in the workspace
output priority lists was inverted. This was causing priority to not be
stored correctly resulting in workspaces not always being restored or
moved to the desired outputs

Diffstat:
Msway/tree/workspace.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c @@ -514,7 +514,7 @@ bool workspace_is_empty(struct sway_workspace *ws) { } static int find_output(const void *id1, const void *id2) { - return strcmp(id1, id2) ? 0 : 1; + return strcmp(id1, id2); } void workspace_output_raise_priority(struct sway_workspace *ws,