summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-07 21:12:24 +0100
committerwm4 <wm4@nowhere>2014-01-15 20:49:32 +0100
commit0fe1385d80de4acf7d600700e0fe8ed1d884c172 (patch)
tree5d43ad2f308a996ab38b926f273e49cad22dc57a /video/out/vo_wayland.c
parentf4e9371d0f33fea115f1390a0f5280f102dd6f98 (diff)
downloadmpv-0fe1385d80de4acf7d600700e0fe8ed1d884c172.tar.bz2
mpv-0fe1385d80de4acf7d600700e0fe8ed1d884c172.tar.xz
wayland: fix fullscreen & resizing for good
I added enough logic to never set ontop or fullscreen twitce. This commit keeps also the size of the video if multiple videos are played. If the ratio differs the width will be kept at the same size and only the height changes.
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 259f6bcf6c..2c0d1ef798 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -639,6 +639,9 @@ static int reconfig(struct vo *vo, struct mp_image_params *fmt, int flags)
vo_wayland_config(vo, vo->dwidth, vo->dheight, flags);
+ if (p->wl->window.events & VO_EVENT_RESIZE)
+ resize(p);
+
return 0;
}