diff options
author | 2019-06-23 02:51:07 -0400 | |
---|---|---|
committer | 2019-06-23 09:57:38 +0300 | |
commit | a18d1c55ced3aae973ff787eb5c12ef6bc23d6e7 (patch) | |
tree | 64afcce7da398fc87d9771c5e4178bbb574d4d93 | |
parent | use surface coordinates for damaging buffers (diff) | |
download | sway-a18d1c55ced3aae973ff787eb5c12ef6bc23d6e7.tar.gz sway-a18d1c55ced3aae973ff787eb5c12ef6bc23d6e7.tar.zst sway-a18d1c55ced3aae973ff787eb5c12ef6bc23d6e7.zip |
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
-rw-r--r-- | sway/tree/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index e1ef40f4..914b6a9d 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c | |||
@@ -514,7 +514,7 @@ bool workspace_is_empty(struct sway_workspace *ws) { | |||
514 | } | 514 | } |
515 | 515 | ||
516 | static int find_output(const void *id1, const void *id2) { | 516 | static int find_output(const void *id1, const void *id2) { |
517 | return strcmp(id1, id2) ? 0 : 1; | 517 | return strcmp(id1, id2); |
518 | } | 518 | } |
519 | 519 | ||
520 | void workspace_output_raise_priority(struct sway_workspace *ws, | 520 | void workspace_output_raise_priority(struct sway_workspace *ws, |