[gtk/wip/chergert/for-main] macos: reduce chances for cyclic updates
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-main] macos: reduce chances for cyclic updates
- Date: Wed, 2 Mar 2022 00:55:38 +0000 (UTC)
commit 59d7eaf4e4b12a1de09d6a5e85f7e73ebb67d0cf
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 1 16:55:13 2022 -0800
macos: reduce chances for cyclic updates
So we don't spike to maximum frame rates.
gdk/macos/gdkmacossurface.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 9a5a1adbfb..a0e0acf9d3 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -152,9 +152,6 @@ _gdk_macos_surface_reposition_children (GdkMacosSurface *self)
if (GDK_IS_MACOS_POPUP_SURFACE (child))
_gdk_macos_popup_surface_reposition (GDK_MACOS_POPUP_SURFACE (child));
}
-
- if (GDK_IS_POPUP (self) && self->did_initial_present)
- gdk_surface_request_layout (GDK_SURFACE (self));
}
static void
@@ -895,7 +892,6 @@ _gdk_macos_surface_configure (GdkMacosSurface *self)
g_clear_object (&self->front);
_gdk_surface_update_size (surface);
- gdk_surface_request_layout (surface);
gdk_surface_invalidate_rect (surface, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]