From: Po Lu Date: Wed, 29 Dec 2021 06:59:41 +0000 (+0800) Subject: Queue xwidget views for allocation in more places X-Git-Tag: emacs-29.0.90~3377 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7b621c40f39c49232d96e446892ee2f553cf733d;p=emacs.git Queue xwidget views for allocation in more places * src/xwidget.c (Fmake_xwidget) [HAVE_PGTK]: (Fxwidget_resize) [HAVE_PGTK]: Queue xwidgets and views for allocation. --- diff --git a/src/xwidget.c b/src/xwidget.c index c05cefde4b5..71a1a46d10b 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -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,