diff options
-rw-r--r-- | video/out/wayland_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 413e26bbb5..62f471210b 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -681,6 +681,9 @@ static void surface_handle_enter(void *data, struct wl_surface *wl_surface, struct wl_output *output) { struct vo_wayland_state *wl = data; + if (!wl->current_output) + return; + struct mp_rect old_output_geometry = wl->current_output->geometry; struct mp_rect old_geometry = wl->geometry; wl->current_output = NULL; |