[gtk/wip/synthetic-motion: 2/3] container: Create a synthetic motion during layout



commit af8e8d9a9cc339eb6e86aa7623f493754bf4efa8
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 21 16:39:40 2020 -0500

    container: Create a synthetic motion during layout

 gtk/gtkcontainer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 7d74e4f069..6e7b44d630 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -372,7 +372,10 @@ gtk_container_idle_sizer (GdkFrameClock *clock,
   if (gtk_widget_needs_allocate (GTK_WIDGET (container)))
     {
       if (GTK_IS_ROOT (container))
-        gtk_native_check_resize (GTK_NATIVE (container));
+        {
+          gtk_native_check_resize (GTK_NATIVE (container));
+          gdk_surface_ensure_motion (gtk_native_get_surface (GTK_NATIVE (container)));
+        }
       else
         g_warning ("gtk_container_idle_sizer() called on a non-native non-window");
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]