]> git.eshelyaron.com Git - emacs.git/commitdiff
Redisplay xwidget view windows instead of just setting their size
authorPo Lu <luangruo@yahoo.com>
Fri, 5 Nov 2021 10:34:42 +0000 (18:34 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:40 +0000 (02:59 +0100)
* src/xwidget.c (Fxwidget_resize): Mark windows as needing redisplay
and redisplay instead.

src/xwidget.c

index 64bff2816341efae8d7a76c3ef57afad58df5dac..41e4accb1a71ef8bab02d3559efaa63786e05fd8 100644 (file)
@@ -1307,21 +1307,13 @@ DEFUN ("xwidget-resize", Fxwidget_resize, Sxwidget_resize, 3, 3, 0,
           struct xwidget_view *xv = XXWIDGET_VIEW (XCAR (tail));
           if (XXWIDGET (xv->model) == xw)
             {
-#ifdef USE_GTK
-             if (xv->wdesc != None)
-               {
-                 XResizeWindow (xv->dpy, xv->wdesc, xw->width, xw->height);
-                 XFlush (xv->dpy);
-                 cairo_xlib_surface_set_size (xv->cr_surface,
-                                              xw->width, xw->height);
-               }
-#elif defined NS_IMPL_COCOA
-              nsxwidget_resize_view(xv, xw->width, xw->height);
-#endif
+             wset_redisplay (XWINDOW (xv->w));
             }
         }
     }
 
+  redisplay ();
+
   return Qnil;
 }