summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-04 09:23:46 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 20:37:29 +0100
commit369b03a3d80760935d991828376c1dca7ac9a4a2 (patch)
tree2dd53b5dc45e823e881407599a728e0f0aa61615 /gtk
parent2cddec77983c02a711ad3920b0d3dba825be617b (diff)
downloadgtk+-369b03a3d80760935d991828376c1dca7ac9a4a2.tar.gz
gtk/window: Don't go via GtkNative when presenting
It'll only call directly back into GtkWindow's toplevel present handling code.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwindow.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 07c23b0761..4940f9f217 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1873,17 +1873,6 @@ gtk_window_native_get_surface_transform (GtkNative *native,
static void
gtk_window_native_check_resize (GtkNative *native)
{
- GtkWidget *widget = GTK_WIDGET (native);
- gint64 before G_GNUC_UNUSED;
-
- before = GDK_PROFILER_CURRENT_TIME;
-
- if (!_gtk_widget_get_alloc_needed (widget))
- gtk_widget_ensure_allocate (widget);
- else if (gtk_widget_get_visible (widget))
- gtk_window_present_toplevel (GTK_WINDOW (native));
-
- gdk_profiler_end_mark (before, "size allocation", "");
}
static void
@@ -3749,7 +3738,7 @@ gtk_window_show (GtkWidget *widget)
gtk_widget_realize (widget);
- gtk_native_check_resize (GTK_NATIVE (window));
+ gtk_window_present_toplevel (window);
gtk_widget_map (widget);