wayland/surface: Fix toplevel present roundtrip condition

We should round trip until we both have received callback and have
ensured we received the initial configuration.
This commit is contained in:
Jonas Ådahl 2020-08-07 09:02:03 +02:00
parent 1b7004ffc7
commit 3590923c8b

View File

@ -4811,8 +4811,7 @@ gdk_wayland_toplevel_present (GdkToplevel *toplevel,
&reconfigure_listener,
&done);
while (is_realized_toplevel (surface) &&
!impl->initial_configure_received &&
!done)
(!impl->initial_configure_received || !done))
wl_display_dispatch_queue (display_wayland->wl_display, impl->event_queue);
if (needs_reconfigure &&