1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-25 01:37:21 +00:00

wayland: don't resize in gl_wayland.c

The vo_wayland_fullscreen handles resizing for the video, because the video
could still be in fullscreen mode and resizing it in gl_wayland could make it
grow or shrink.
This commit is contained in:
Alexander Preisinger 2013-07-16 21:40:31 +02:00 committed by wm4
parent c4b08a9a11
commit c5b76714a0
2 changed files with 1 additions and 7 deletions

View File

@ -220,11 +220,7 @@ static bool config_window_wayland(struct MPGLContext *ctx,
return ret;
}
else {
/* If the window exists just resize it */
if (egl_ctx->egl_window)
egl_resize_func(wl, 0, d_width, d_height, egl_ctx);
else {
if (!egl_ctx->egl_window) {
/* If the context exists and the hidden flag is unset then
* create the window */
if (!(VOFLAG_HIDDEN & flags))

View File

@ -695,8 +695,6 @@ void vo_wayland_uninit (struct vo *vo)
static void vo_wayland_ontop (struct vo *vo)
{
struct vo_wayland_state *wl = vo->wayland;
vo->opts->ontop = !vo->opts->ontop;
vo->opts->fullscreen = !vo->opts->fullscreen;