wayland: fix segfault in surface_handle_enter due to memory read

Fixes: 895f40e150 ("wayland: only perform a rescale if window is on one output")
This commit is contained in:
llyyr 2024-04-15 18:06:04 +05:30 committed by Dudemanguy
parent 919a042833
commit 3995cd3714
1 changed files with 2 additions and 1 deletions

View File

@ -957,7 +957,8 @@ static void surface_handle_enter(void *data, struct wl_surface *wl_surface,
update_output_geometry(wl, old_geometry, old_output_geometry);
MP_VERBOSE(wl, "Surface entered output %s %s (0x%x), scale = %f, refresh rate = %f Hz\n",
o->make, o->model, o->id, wl->scaling, o->refresh_rate);
wl->current_output->make, wl->current_output->model,
wl->current_output->id, wl->scaling, wl->current_output->refresh_rate);
wl->pending_vo_events |= VO_EVENT_WIN_STATE;
}