mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
layer-shell: Don't crash when the compositor didn't find a suitable output
In that case it must have closed the surface.
This commit is contained in:
parent
b1bd0e2557
commit
d81f0170a3
1 changed files with 3 additions and 1 deletions
|
@ -287,7 +287,9 @@ static void handle_wlr_surface_committed(struct wlr_surface *wlr_surface,
|
||||||
surface->added = true;
|
surface->added = true;
|
||||||
wlr_signal_emit_safe(&surface->shell->events.new_surface,
|
wlr_signal_emit_safe(&surface->shell->events.new_surface,
|
||||||
surface);
|
surface);
|
||||||
assert(surface->output);
|
// either the compositor found a suitable output or it must
|
||||||
|
// have closed the surface
|
||||||
|
assert(surface->output || surface->closed);
|
||||||
}
|
}
|
||||||
if (surface->configured && wlr_surface_has_buffer(surface->surface) &&
|
if (surface->configured && wlr_surface_has_buffer(surface->surface) &&
|
||||||
!surface->mapped) {
|
!surface->mapped) {
|
||||||
|
|
Loading…
Reference in a new issue