diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-07 21:12:24 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-07 21:12:24 +0100 |
commit | 374f40de30178e080f24bfd9f1dc3ece2f97c8bd (patch) | |
tree | 249283ad3ccf293a91ee4c5d5cef9b28299a5e02 /video/out/vo_wayland.c | |
parent | bde15f33016edc61c612b9f99cf01094633caa97 (diff) | |
download | mpv-374f40de30178e080f24bfd9f1dc3ece2f97c8bd.tar.bz2 mpv-374f40de30178e080f24bfd9f1dc3ece2f97c8bd.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.c | 3 |
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; } |