diff options
-rw-r--r-- | sway/desktop/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 1b72fc21..f8d831d3 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -533,6 +533,7 @@ static void update_output_manager_config(struct sway_server *server) { | |||
533 | 533 | ||
534 | static void handle_destroy(struct wl_listener *listener, void *data) { | 534 | static void handle_destroy(struct wl_listener *listener, void *data) { |
535 | struct sway_output *output = wl_container_of(listener, output, destroy); | 535 | struct sway_output *output = wl_container_of(listener, output, destroy); |
536 | struct sway_server *server = output->server; | ||
536 | wl_signal_emit(&output->events.destroy, output); | 537 | wl_signal_emit(&output->events.destroy, output); |
537 | 538 | ||
538 | if (output->enabled) { | 539 | if (output->enabled) { |
@@ -550,7 +551,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
550 | 551 | ||
551 | transaction_commit_dirty(); | 552 | transaction_commit_dirty(); |
552 | 553 | ||
553 | update_output_manager_config(output->server); | 554 | update_output_manager_config(server); |
554 | } | 555 | } |
555 | 556 | ||
556 | static void handle_mode(struct wl_listener *listener, void *data) { | 557 | static void handle_mode(struct wl_listener *listener, void *data) { |