diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 15:47:22 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-28 15:47:22 -0400 |
commit | 0c8a64942e087038806b353949c900e03fd764a8 (patch) | |
tree | a427ff9d8702ad5dbc6e5ede8851930662d010ef /sway/desktop/output.c | |
parent | Merge pull request #1638 from swaywm/swaybg-layers (diff) | |
download | sway-0c8a64942e087038806b353949c900e03fd764a8.tar.gz sway-0c8a64942e087038806b353949c900e03fd764a8.tar.zst sway-0c8a64942e087038806b353949c900e03fd764a8.zip |
Add initial layer shell skeleton
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); |