summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/wayland_common.c17
-rw-r--r--video/out/wayland_common.h1
2 files changed, 3 insertions, 15 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 842e649812..f5f662ec3c 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1201,20 +1201,9 @@ bool vo_wayland_config (struct vo *vo, uint32_t flags)
wl->window.aspect = vo->dwidth / (float) MPMAX(vo->dheight, 1);
if (!(flags & VOFLAG_HIDDEN)) {
- if (!wl->window.is_init) {
- wl->window.width = vo->dwidth;
- wl->window.height = vo->dheight;
- }
-
- if (vo->opts->fullscreen) {
- if (wl->window.is_fullscreen)
- schedule_resize(wl, 0, wl->window.fs_width, wl->window.fs_height);
- else
- vo_wayland_fullscreen(vo);
- }
- else
- vo_wayland_ontop(vo);
- wl->window.is_init = true;
+ wl->window.width = vo->dwidth;
+ wl->window.height = vo->dheight;
+ vo_wayland_fullscreen(vo);
}
return true;
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 86af54be45..5f0947f47d 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -95,7 +95,6 @@ struct vo_wayland_state {
int32_t sh_y;
float aspect;
- bool is_init; // true if the window has a valid size
bool is_fullscreen; // don't keep aspect ratio in fullscreen mode
int32_t fs_width; // fullscreen sizes
int32_t fs_height;