Force transactions to complete in order

This forces transactions to complete in order by using a singly linked
list stored in the sway server.
This commit is contained in:
Ryan Dwyer 2018-06-24 12:33:23 +10:00
parent 32b865e610
commit f08a30d6d0
2 changed files with 74 additions and 18 deletions

View file

@ -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;