aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-19 20:24:16 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-27 18:50:09 -0400
commitfcf8c6c8a29e3ce0a17bcf7ce1ca92fed8493502 (patch)
tree69b00e207f85533f6af1ddf286ffe222d5aec43f /rootston/desktop.c
parent4bc1cc49d5b8007145774214bc9126577b56b53c (diff)
Fix issues preventing layer from getting allocated
Now all of the steps to get rootston a reference to the layer surface are correctly wired up.
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 015a8215..f00fc63f 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -719,6 +719,10 @@ struct roots_desktop *desktop_create(struct roots_server *server,
wl_signal_add(&desktop->layer_shell->events.new_surface,
&desktop->layer_shell_surface);
desktop->layer_shell_surface.notify = handle_layer_shell_surface;
+ for (size_t i = 0;
+ i < sizeof(desktop->layers) / sizeof(desktop->layers[0]); ++i) {
+ wl_list_init(&desktop->layers[i]);
+ }
#ifdef WLR_HAS_XWAYLAND
const char *cursor_theme = NULL;