wayland: send VO_EVENT_DPI on output event as well

The display scaling might change here, so we need to signal mpv's core.
This commit is contained in:
Dudemanguy 2021-05-23 16:59:30 -05:00
parent cbd87ddb93
commit 193814497b
1 changed files with 1 additions and 0 deletions

View File

@ -700,6 +700,7 @@ static void output_handle_done(void* data, struct wl_output *wl_output)
wl->window_size = wl->vdparams;
if (!wl->vo_opts->fullscreen && !wl->vo_opts->window_maximized)
wl->geometry = wl->window_size;
wl->pending_vo_events |= VO_EVENT_DPI;
wl->pending_vo_events |= VO_EVENT_RESIZE;
}