diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6c990c47..a9aa47a6 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -236,6 +236,7 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
236 | return; | 236 | return; |
237 | } | 237 | } |
238 | output->wlr_output = wlr_output; | 238 | output->wlr_output = wlr_output; |
239 | wlr_output->data = output; | ||
239 | output->server = server; | 240 | output->server = server; |
240 | 241 | ||
241 | if (!wl_list_empty(&wlr_output->modes)) { | 242 | if (!wl_list_empty(&wlr_output->modes)) { |
@@ -250,6 +251,11 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
250 | return; | 251 | return; |
251 | } | 252 | } |
252 | 253 | ||
254 | size_t len = sizeof(output->layers) / sizeof(output->layers[0]); | ||
255 | for (size_t i = 0; i < len; ++i) { | ||
256 | wl_list_init(&output->layers[i]); | ||
257 | } | ||
258 | |||
253 | sway_input_manager_configure_xcursor(input_manager); | 259 | sway_input_manager_configure_xcursor(input_manager); |
254 | 260 | ||
255 | wl_signal_add(&wlr_output->events.frame, &output->frame); | 261 | wl_signal_add(&wlr_output->events.frame, &output->frame); |