aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-04 16:48:59 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-04 16:51:15 +0200
commitb30b9ba57e6970d2872c6855ab9c6722123d0cc8 (patch)
treecddc57c899b24495c10cd21d99100c8753354a1e
parentf17792183bb0972ba71c84b49366e71fdddc3c5f (diff)
downloadriver-b30b9ba57e6970d2872c6855ab9c6722123d0cc8.tar.gz
river-b30b9ba57e6970d2872c6855ab9c6722123d0cc8.tar.xz
Stop the transaction timer if timeout didn't occur
-rw-r--r--src/root.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index c88557d..af1cff8 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -292,6 +292,10 @@ pub const Root = struct {
pub fn notifyConfigured(self: *Self) void {
self.pending_configures -= 1;
if (self.pending_configures == 0) {
+ // Stop the timer, as we didn't timeout
+ if (c.wl_event_source_timer_update(self.transaction_timer, 0) == -1) {
+ // TODO: handle failure
+ }
self.commitTransaction();
}
}