diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-24 12:33:23 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-24 12:33:23 +1000 |
commit | f08a30d6d04b5f986ea1e66a017e81bcd7c77e39 (patch) | |
tree | a252ff8805495230ad7ac6ecdc81ac664649f6e0 /include/sway/server.h | |
parent | Fix crash when deleting last child in a tabbed or stacked container (diff) | |
download | sway-f08a30d6d04b5f986ea1e66a017e81bcd7c77e39.tar.gz sway-f08a30d6d04b5f986ea1e66a017e81bcd7c77e39.tar.zst sway-f08a30d6d04b5f986ea1e66a017e81bcd7c77e39.zip |
Force transactions to complete in order
This forces transactions to complete in order by using a singly linked
list stored in the sway server.
Diffstat (limited to 'include/sway/server.h')
-rw-r--r-- | include/sway/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index b07e86a7..2aa7b7fe 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -47,6 +47,8 @@ struct sway_server { | |||
47 | 47 | ||
48 | bool terminating; | 48 | bool terminating; |
49 | 49 | ||
50 | struct sway_transaction *head_transaction; // singly linked list | ||
51 | |||
50 | // When a view is being destroyed and is waiting for a transaction to | 52 | // When a view is being destroyed and is waiting for a transaction to |
51 | // complete it will be stored here. | 53 | // complete it will be stored here. |
52 | list_t *destroying_containers; | 54 | list_t *destroying_containers; |