Redisplay xwidget view windows instead of just setting their size

* src/xwidget.c (Fxwidget_resize): Mark windows as needing redisplay
and redisplay instead.
This commit is contained in:
Po Lu 2021-11-05 18:34:42 +08:00 committed by Lars Ingebrigtsen
parent 49ed706683
commit 32ec485e5c

View 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;
}