aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/transaction.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 18:51:37 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 18:51:37 +1000
commit0085f64ac073666aa661938f15e8c1190d69a69b (patch)
treea1cd9231205bf7ba4bc0aaebf038f5fddfda89d5 /sway/desktop/transaction.c
parentDamage output when views toggle fullscreen (diff)
downloadsway-0085f64ac073666aa661938f15e8c1190d69a69b.tar.gz
sway-0085f64ac073666aa661938f15e8c1190d69a69b.tar.zst
sway-0085f64ac073666aa661938f15e8c1190d69a69b.zip
Remove timer when transaction destroys
Diffstat (limited to 'sway/desktop/transaction.c')
-rw-r--r--sway/desktop/transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 7727ec6e..7a99bfe2 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -102,6 +102,9 @@ static void transaction_destroy(struct sway_transaction *transaction) {
102 list_foreach(transaction->damage, free); 102 list_foreach(transaction->damage, free);
103 list_free(transaction->damage); 103 list_free(transaction->damage);
104 104
105 if (transaction->timer) {
106 wl_event_source_remove(transaction->timer);
107 }
105 free(transaction); 108 free(transaction);
106} 109}
107 110