diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 19:07:48 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-27 19:07:48 +1000 |
commit | 9652529cc161e943241d946dac93ab16d5e30ee5 (patch) | |
tree | ad1b0c728dd970449e7033f3b3eda4b549bd3fab /common | |
parent | Move unsetting of view->surface into view_unmap (diff) | |
download | sway-9652529cc161e943241d946dac93ab16d5e30ee5.tar.gz sway-9652529cc161e943241d946dac93ab16d5e30ee5.tar.zst sway-9652529cc161e943241d946dac93ab16d5e30ee5.zip |
Allow views to skip configures
To do this properly, the transaction queue will only be processed if it
can be completely processed.
Diffstat (limited to 'common')
-rw-r--r-- | common/list.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/list.c b/common/list.c index 39cc10e1..cab10c1e 100644 --- a/common/list.c +++ b/common/list.c | |||
@@ -62,6 +62,13 @@ void list_cat(list_t *list, list_t *source) { | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | void list_empty(list_t *list) { | ||
66 | list->capacity = 10; | ||
67 | list->length = 0; | ||
68 | free(list->items); | ||
69 | list->items = malloc(sizeof(void*) * list->capacity); | ||
70 | } | ||
71 | |||
65 | void list_qsort(list_t *list, int compare(const void *left, const void *right)) { | 72 | void list_qsort(list_t *list, int compare(const void *left, const void *right)) { |
66 | qsort(list->items, list->length, sizeof(void *), compare); | 73 | qsort(list->items, list->length, sizeof(void *), compare); |
67 | } | 74 | } |