Skip to content

Commit

Permalink
wayland: send VO_EVENT_DPI on output event as well
Browse files Browse the repository at this point in the history
The display scaling might change here, so we need to signal mpv's core.
  • Loading branch information
Dudemanguy committed May 23, 2021
1 parent cbd87dd commit 1938144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions video/out/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1938144

Please sign in to comment.