[gtk/wip/synthetic-motion2: 3/4] idle size: Create a synthetic motion after layout




commit c45cc262a8d954b585b4350a8d48d03637e1a974
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Aug 26 07:57:07 2020 -0400

    idle size: Create a synthetic motion after layout

 gtk/gtkroot.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkroot.c b/gtk/gtkroot.c
index 24d3860b1d..789c07cf40 100644
--- a/gtk/gtkroot.c
+++ b/gtk/gtkroot.c
@@ -199,7 +199,10 @@ gtk_root_layout_cb (GdkFrameClock *clock,
    * since it doesn't cause any actual harm.
    */
   if (gtk_widget_needs_allocate (widget))
-    gtk_native_check_resize (GTK_NATIVE (self));
+    {
+      gtk_native_check_resize (GTK_NATIVE (self));
+      gdk_surface_ensure_motion (gtk_native_get_surface (GTK_NATIVE (self)));
+    }
 
   if (!gtk_root_needs_layout (self))
     gtk_root_stop_layout (self);


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