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:
parent
49ed706683
commit
32ec485e5c
1 changed files with 3 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue