diff options
| author | Denis Doria <denisdoria@gmail.com> | 2016-06-03 00:17:51 +0200 | 
|---|---|---|
| committer | Denis Doria <denisdoria@gmail.com> | 2016-06-03 00:17:51 +0200 | 
| commit | 8a08e831947c8feecf8e79ecf21279c950ae419a (patch) | |
| tree | 634c9197d6dd1dfebbb124d797f5c13b1c605a92 /sway/output.c | |
| parent | e4f80877bea48eb29b4ddfbce923bf78a6694ffb (diff) | |
| parent | 68b517e1aee452463c7eff3775f8b56b0e48bc54 (diff) | |
| download | sway-8a08e831947c8feecf8e79ecf21279c950ae419a.tar.xz | |
Merge branch 'master' into variables_corner_cases
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 @@  #include <stdlib.h>  #include "output.h"  #include "log.h" +#include "list.h"  swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos) {  	if (strcasecmp(name, "left") == 0) { @@ -180,7 +181,7 @@ void get_absolute_center_position(swayc_t *container, struct wlc_point *point) {  	point->y += container->height/2;  } -int sort_workspace_cmp_qsort(const void *_a, const void *_b) { +static int sort_workspace_cmp_qsort(const void *_a, const void *_b) {  	swayc_t *a = *(void **)_a;  	swayc_t *b = *(void **)_b;  	int retval = 0; @@ -199,5 +200,5 @@ int sort_workspace_cmp_qsort(const void *_a, const void *_b) {  }  void sort_workspaces(swayc_t *output) { -	list_qsort(output->children, sort_workspace_cmp_qsort); +	list_stable_sort(output->children, sort_workspace_cmp_qsort);  } | 
