]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix resize of xwidgets on GTK
authorPo Lu <luangruo@yahoo.com>
Mon, 8 Nov 2021 05:34:09 +0000 (06:34 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 8 Nov 2021 06:38:41 +0000 (07:38 +0100)
* src/xwidget.c (Fxwidget_resize): Queue widget for re-allocation
after setting its size request (bug#51679).

src/xwidget.c

index ecb973f485f057257cb5d759c026e3e1cee74e59..1815a39ab6ff57e9f74d071b56baf6c522423824 100644 (file)
@@ -1740,9 +1740,10 @@ DEFUN ("xwidget-resize", Fxwidget_resize, Sxwidget_resize, 3, 3, 0,
     {
       gtk_window_resize (GTK_WINDOW (xw->widgetwindow_osr), xw->width,
                          xw->height);
-      gtk_container_resize_children (GTK_CONTAINER (xw->widgetwindow_osr));
       gtk_widget_set_size_request (GTK_WIDGET (xw->widget_osr), xw->width,
                                    xw->height);
+
+      gtk_widget_queue_allocate (GTK_WIDGET (xw->widget_osr));
     }
 #elif defined NS_IMPL_COCOA
   nsxwidget_resize (xw);