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 /include | |
parent | e6829c5991cac1bd164f800c14fccd522d702783 (diff) | |
download | sway-9652529cc161e943241d946dac93ab16d5e30ee5.tar.xz |
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 'include')
-rw-r--r-- | include/list.h | 1 | ||||
-rw-r--r-- | include/sway/server.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/list.h b/include/list.h index 7eead4ac..d352dbd5 100644 --- a/include/list.h +++ b/include/list.h @@ -14,6 +14,7 @@ void list_add(list_t *list, void *item); void list_insert(list_t *list, int index, void *item); void list_del(list_t *list, int index); void list_cat(list_t *list, list_t *source); +void list_empty(list_t *list); // See qsort. Remember to use *_qsort functions as compare functions, // because they dereference the left and right arguments first! void list_qsort(list_t *list, int compare(const void *left, const void *right)); diff --git a/include/sway/server.h b/include/sway/server.h index bd96b085..0efc6baa 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -47,7 +47,7 @@ struct sway_server { bool debug_txn_timings; - struct sway_transaction *head_transaction; // singly linked list + list_t *transactions; // When a view is being destroyed and is waiting for a transaction to // complete it will be stored here. |