summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-29 14:59:41 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-29 14:59:41 +0800
commit7b621c40f39c49232d96e446892ee2f553cf733d (patch)
tree431c4ea9263968c033f57af13e39bde0411aacc8 /src/xwidget.c
parent2b7d33e30b4b66bca405fed5b5483e864db6b1e5 (diff)
downloademacs-7b621c40f39c49232d96e446892ee2f553cf733d.tar.gz
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.
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c2
1 files changed, 2 insertions, 0 deletions
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,