~ruther/dwl

cb4265ac8c48faeac385b038b59ac53a736d142d — Leonardo Hernández Hernández 3 years ago a95338c
check `m` in commitlayersurfacenotify()
1 files changed, 1 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -2
@@ 755,9 755,8 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
	wlr_scene_node_reparent(layersurface->scene,
			layers[wlr_layer_surface->current.layer]);

	if (!wlr_output)
	if (!wlr_output || !(m = wlr_output->data))
		return;
	m = wlr_output->data;

	if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
		wl_list_remove(&layersurface->link);

Do not follow this link