aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-24 12:33:23 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-24 12:33:23 +1000
commitf08a30d6d04b5f986ea1e66a017e81bcd7c77e39 (patch)
treea252ff8805495230ad7ac6ecdc81ac664649f6e0 /include/sway
parent32b865e610dd937af17ce36b8c986e41f55a4627 (diff)
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')
-rw-r--r--include/sway/server.h2
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 {
bool terminating;
+ struct sway_transaction *head_transaction; // singly linked list
+
// When a view is being destroyed and is waiting for a transaction to
// complete it will be stored here.
list_t *destroying_containers;