summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index c77015de2f..8867deaaa3 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -768,9 +768,8 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
wl->toplevel_width = width;
wl->toplevel_height = height;
- /* Bail out if any of these values are 0 for any reason. */
- if (mp_rect_w(wl->geometry) == 0 || mp_rect_h(wl->geometry) == 0 ||
- width == 0 || height == 0)
+ /* Don't do anything here if we haven't finished setting geometry. */
+ if (mp_rect_w(wl->geometry) == 0 || mp_rect_h(wl->geometry) == 0)
return;
bool is_maximized = false;