mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 18:44:17 +00:00
damage after destroy layersurface
This commit is contained in:
parent
a98b3831d5
commit
1e89aa72a3
4
dwl.c
4
dwl.c
@ -1024,8 +1024,10 @@ destroylayersurfacenotify(struct wl_listener *listener, void *data)
|
|||||||
wl_list_remove(&layersurface->surface_commit.link);
|
wl_list_remove(&layersurface->surface_commit.link);
|
||||||
if (layersurface->layer_surface->output) {
|
if (layersurface->layer_surface->output) {
|
||||||
Monitor *m = layersurface->layer_surface->output->data;
|
Monitor *m = layersurface->layer_surface->output->data;
|
||||||
if (m)
|
if (m) {
|
||||||
arrangelayers(m);
|
arrangelayers(m);
|
||||||
|
wlr_output_damage_add_whole(m->damage);
|
||||||
|
}
|
||||||
layersurface->layer_surface->output = NULL;
|
layersurface->layer_surface->output = NULL;
|
||||||
}
|
}
|
||||||
free(layersurface);
|
free(layersurface);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user