From: Po Lu Date: Fri, 5 Nov 2021 10:34:42 +0000 (+0800) Subject: Redisplay xwidget view windows instead of just setting their size X-Git-Tag: emacs-29.0.90~3671^2~138 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32ec485e5cc728c050e5fbe45333157be550f0d6;p=emacs.git Redisplay xwidget view windows instead of just setting their size * src/xwidget.c (Fxwidget_resize): Mark windows as needing redisplay and redisplay instead. --- diff --git a/src/xwidget.c b/src/xwidget.c index 64bff281634..41e4accb1a7 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -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; }