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 bc0ca470..bf5b284b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -546,6 +546,7 @@ static void update_output_manager_config(struct sway_server *server) { | |||
546 | 546 | ||
547 | static void handle_destroy(struct wl_listener *listener, void *data) { | 547 | static void handle_destroy(struct wl_listener *listener, void *data) { |
548 | struct sway_output *output = wl_container_of(listener, output, destroy); | 548 | struct sway_output *output = wl_container_of(listener, output, destroy); |
549 | struct sway_server *server = output->server; | ||
549 | wl_signal_emit(&output->events.destroy, output); | 550 | wl_signal_emit(&output->events.destroy, output); |
550 | 551 | ||
551 | if (output->enabled) { | 552 | if (output->enabled) { |
@@ -563,7 +564,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
563 | 564 | ||
564 | transaction_commit_dirty(); | 565 | transaction_commit_dirty(); |
565 | 566 | ||
566 | update_output_manager_config(output->server); | 567 | update_output_manager_config(server); |
567 | } | 568 | } |
568 | 569 | ||
569 | static void handle_mode(struct wl_listener *listener, void *data) { | 570 | static void handle_mode(struct wl_listener *listener, void *data) { |