check m
in commitlayersurfacenotify()
This commit is contained in:
parent
a95338ca43
commit
cb4265ac8c
1 changed files with 1 additions and 2 deletions
3
dwl.c
3
dwl.c
|
@ -755,9 +755,8 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
|
||||||
wlr_scene_node_reparent(layersurface->scene,
|
wlr_scene_node_reparent(layersurface->scene,
|
||||||
layers[wlr_layer_surface->current.layer]);
|
layers[wlr_layer_surface->current.layer]);
|
||||||
|
|
||||||
if (!wlr_output)
|
if (!wlr_output || !(m = wlr_output->data))
|
||||||
return;
|
return;
|
||||||
m = wlr_output->data;
|
|
||||||
|
|
||||||
if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
|
if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
|
||||||
wl_list_remove(&layersurface->link);
|
wl_list_remove(&layersurface->link);
|
||||||
|
|
Loading…
Reference in a new issue