summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-12 14:06:13 -0500
committerDudemanguy <random342@airmail.cc>2023-07-13 12:12:37 +0000
commit828dd65ef84b4d8e95e70752b9eb0833909d1d23 (patch)
treeaedf224d02c77d78a7f01bd188899078ceccb753 /video/out
parent4ff27d5220a999f38e3689cd6cc5a25a4c870b80 (diff)
downloadmpv-828dd65ef84b4d8e95e70752b9eb0833909d1d23.tar.bz2
mpv-828dd65ef84b4d8e95e70752b9eb0833909d1d23.tar.xz
wayland: use xdg_surface_set_window_geometry
mpv has never used this because we never really seemed to need it, but it actually has a purpose. This informs the compositor of the actual dimensions of the mpv window and avoids errors with sizes not matching (particularly with weston). It's a better way to fix the "maximizing causing an error on weston" issue since it also works for dmabuf-wayland (which always had this problem).
Diffstat (limited to 'video/out')
-rw-r--r--video/out/wayland_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index cecacf5215..86673b6baa 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -996,6 +996,7 @@ resize:
mp_rect_w(wl->geometry), mp_rect_h(wl->geometry));
wl->pending_vo_events |= VO_EVENT_RESIZE;
+ xdg_surface_set_window_geometry(wl->xdg_surface, 0, 0, width, height);
wl->toplevel_configured = true;
}