]> git.eshelyaron.com Git - emacs.git/commitdiff
Queue xwidget views for allocation in more places
authorPo Lu <luangruo@yahoo.com>
Wed, 29 Dec 2021 06:59:41 +0000 (14:59 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 29 Dec 2021 06:59:41 +0000 (14:59 +0800)
* src/xwidget.c (Fmake_xwidget) [HAVE_PGTK]:
(Fxwidget_resize) [HAVE_PGTK]: Queue xwidgets and views for
allocation.

src/xwidget.c

index c05cefde4b5a5a964d59221733405bf5ca1c782c..71a1a46d10bfd0e62b7a1798a7e52b7b5e12cb21 100644 (file)
@@ -327,6 +327,7 @@ fails.  */)
 
       gtk_widget_set_size_request (GTK_WIDGET (xw->widget_osr), xw->width,
                                    xw->height);
+      gtk_widget_queue_allocate (GTK_WIDGET (xw->widget_osr));
 
       if (EQ (xw->type, Qwebkit))
         {
@@ -2195,6 +2196,7 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
                                   clip_bottom - clip_top);
       gtk_fixed_move (GTK_FIXED (FRAME_GTK_WIDGET (xv->frame)),
                      xv->widget, x + clip_left, y + clip_top);
+      gtk_widget_queue_allocate (xv->widget);
 #endif
 #elif defined NS_IMPL_COCOA
       nsxwidget_resize_view (xv, clip_right - clip_left,