mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
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.
This commit is contained in:
parent
b90af33570
commit
694018f1a4
1 changed files with 0 additions and 1 deletions
|
|
@ -19,7 +19,6 @@ struct sway_root *root;
|
||||||
static void output_layout_handle_change(struct wl_listener *listener,
|
static void output_layout_handle_change(struct wl_listener *listener,
|
||||||
void *data) {
|
void *data) {
|
||||||
arrange_root();
|
arrange_root();
|
||||||
transaction_commit_dirty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sway_root *root_create(void) {
|
struct sway_root *root_create(void) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue