aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/transaction.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-29 19:44:54 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-29 19:44:54 +1000
commitd7169ee7ffd45318125dbe3013aadbd1482a3e5f (patch)
tree33399a07278aa9f624d7fecee5912a9823e33e4d /sway/desktop/transaction.c
parentFix crash when moving last child of a container to workspace or output (diff)
downloadsway-d7169ee7ffd45318125dbe3013aadbd1482a3e5f.tar.gz
sway-d7169ee7ffd45318125dbe3013aadbd1482a3e5f.tar.zst
sway-d7169ee7ffd45318125dbe3013aadbd1482a3e5f.zip
Replace list_empty with a simple alternative
Diffstat (limited to 'sway/desktop/transaction.c')
-rw-r--r--sway/desktop/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 7a2e78e5..fc23ef35 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -241,7 +241,7 @@ static void transaction_progress_queue() {
241 transaction_apply(transaction); 241 transaction_apply(transaction);
242 transaction_destroy(transaction); 242 transaction_destroy(transaction);
243 } 243 }
244 list_empty(server.transactions); 244 server.transactions->length = 0;
245} 245}
246 246
247static int handle_timeout(void *data) { 247static int handle_timeout(void *data) {