diff options
author | Dudemanguy <random342@airmail.cc> | 2021-05-23 16:59:30 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-05-23 16:59:30 -0500 |
commit | 193814497b3f72fddea17d04269759f1cf64943d (patch) | |
tree | 17de1df0e098bdbd525be3e01df6318970d7ea28 | |
parent | cbd87ddb93fb300c072344d22d17b4f17c8a0889 (diff) | |
download | mpv-193814497b3f72fddea17d04269759f1cf64943d.tar.bz2 mpv-193814497b3f72fddea17d04269759f1cf64943d.tar.xz |
wayland: send VO_EVENT_DPI on output event as well
The display scaling might change here, so we need to signal mpv's core.
-rw-r--r-- | video/out/wayland_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 6075b9a34b..2c0569a83b 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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; } |