diff options
Diffstat (limited to 'sway/output.c')
-rw-r--r-- | sway/output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/output.c b/sway/output.c index 53b24232..d56a2f30 100644 --- a/sway/output.c +++ b/sway/output.c | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include "output.h" | 4 | #include "output.h" |
5 | #include "log.h" | 5 | #include "log.h" |
6 | #include "list.h" | ||
6 | 7 | ||
7 | swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos) { | 8 | swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos) { |
8 | if (strcasecmp(name, "left") == 0) { | 9 | if (strcasecmp(name, "left") == 0) { |
@@ -180,7 +181,7 @@ void get_absolute_center_position(swayc_t *container, struct wlc_point *point) { | |||
180 | point->y += container->height/2; | 181 | point->y += container->height/2; |
181 | } | 182 | } |
182 | 183 | ||
183 | int sort_workspace_cmp_qsort(const void *_a, const void *_b) { | 184 | static int sort_workspace_cmp_qsort(const void *_a, const void *_b) { |
184 | swayc_t *a = *(void **)_a; | 185 | swayc_t *a = *(void **)_a; |
185 | swayc_t *b = *(void **)_b; | 186 | swayc_t *b = *(void **)_b; |
186 | int retval = 0; | 187 | int retval = 0; |
@@ -199,5 +200,5 @@ int sort_workspace_cmp_qsort(const void *_a, const void *_b) { | |||
199 | } | 200 | } |
200 | 201 | ||
201 | void sort_workspaces(swayc_t *output) { | 202 | void sort_workspaces(swayc_t *output) { |
202 | list_qsort(output->children, sort_workspace_cmp_qsort); | 203 | list_stable_sort(output->children, sort_workspace_cmp_qsort); |
203 | } | 204 | } |