mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
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
This commit is contained in:
parent
b59139c239
commit
a18d1c55ce
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ bool workspace_is_empty(struct sway_workspace *ws) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int find_output(const void *id1, const void *id2) {
|
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,
|
void workspace_output_raise_priority(struct sway_workspace *ws,
|
||||||
|
|
Loading…
Reference in a new issue