[gtk/matthiasc/surface-state-rework: 53/80] gdk/surface: Emit layout event while frozen
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/surface-state-rework: 53/80] gdk/surface: Emit layout event while frozen
- Date: Sat, 5 Dec 2020 17:42:40 +0000 (UTC)
commit 2f467f2a28ae1a68c4a9b9828a1ae190059b3736
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Dec 4 08:04:58 2020 +0100
gdk/surface: Emit layout event while frozen
The allocation of popups are part dependent of the allocation of the
root, which means the root must still be allocated when updates are
frozen, otherwise we'll try to allocate non-laid out popups.
gdk/gdksurface.c | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 2c52e551f3..fd2d0772e8 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1336,9 +1336,6 @@ gdk_surface_layout_on_clock (GdkFrameClock *clock,
if (!GDK_SURFACE_IS_MAPPED (surface))
return;
- if (surface->update_freeze_count)
- return;
-
surface->pending_phases &= ~GDK_FRAME_CLOCK_PHASE_LAYOUT;
class = GDK_SURFACE_GET_CLASS (surface);
@@ -1358,13 +1355,6 @@ gdk_surface_request_layout (GdkSurface *surface)
if (class->request_layout)
class->request_layout (surface);
- if (surface->update_freeze_count ||
- gdk_surface_is_toplevel_frozen (surface))
- {
- surface->pending_phases |= GDK_FRAME_CLOCK_PHASE_LAYOUT;
- return;
- }
-
frame_clock = gdk_surface_get_frame_clock (surface);
g_return_if_fail (frame_clock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]