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:
parent
c4b08a9a11
commit
c5b76714a0
@ -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))
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user