[gtk: 1/3] wayland/surface: Fix toplevel present roundtrip condition
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/3] wayland/surface: Fix toplevel present roundtrip condition
- Date: Fri, 7 Aug 2020 11:56:32 +0000 (UTC)
commit 3590923c8b792320f30e3da7061108ebb4980d59
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Aug 7 09:02:03 2020 +0200
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.
gdk/wayland/gdksurface-wayland.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 2d6cafd187..fccfa9a003 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -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 &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]