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.
This commit is contained in:
Drew DeVault 2018-03-19 20:24:16 -04:00
parent 4bc1cc49d5
commit fcf8c6c8a2
3 changed files with 29 additions and 13 deletions

View file

@ -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;