Update layer shell with optional wl_output

This commit is contained in:
Drew DeVault 2018-04-22 18:57:45 +02:00
parent 12bf39a715
commit 177b548b15
3 changed files with 11 additions and 2 deletions

View file

@ -319,7 +319,9 @@ static void layer_shell_handle_get_layer_surface(struct wl_client *wl_client,
surface->shell = shell;
surface->surface = wlr_surface;
surface->output = wlr_output_from_resource(output_resource);
if (output_resource) {
surface->output = wlr_output_from_resource(output_resource);
}
surface->resource = wl_resource_create(wl_client,
&zwlr_layer_surface_v1_interface,
wl_resource_get_version(client_resource),