From 694018f1a4ada6c9fc8a1bdd57c50d09bd260956 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 30 Oct 2018 22:50:04 +1000 Subject: [PATCH] Don't commit transaction in output_layout_handle_change Because this is only ever emitted by wlroots in response to a direct function call by us (such as in apply_output_config) or in response to an output event such as a mode event, and we already commit transactions in the output event handlers. This prevents creating a transaction while the tree is in an inconsistent state, which caused a crash. --- sway/tree/root.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sway/tree/root.c b/sway/tree/root.c index 9bda7c283..284732fb5 100644 --- a/sway/tree/root.c +++ b/sway/tree/root.c @@ -19,7 +19,6 @@ struct sway_root *root; static void output_layout_handle_change(struct wl_listener *listener, void *data) { arrange_root(); - transaction_commit_dirty(); } struct sway_root *root_create(void) {