diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-16 17:51:07 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-16 17:51:07 +0800 |
commit | 8d0c19fb0c368692f4b17728c0eaf3e16e0c70f7 (patch) | |
tree | 69c15be64cd7cb9b55b28faad6b4644035845864 /src/xwidget.c | |
parent | 1657e0fb177d6a107479306e17ffbb9016a9a40c (diff) | |
download | emacs-8d0c19fb0c368692f4b17728c0eaf3e16e0c70f7.tar.gz |
Lower xwidget views owned by parent when lowering frame
* src/xterm.c (x_lower_frame): Lower parent frame's xwidget
views as well.
* src/xwidget.h (lower_frame_xwidget_views):
* src/xwidget.c (lower_frame_xwidget_views): New function.
Diffstat (limited to 'src/xwidget.c')
-rw-r--r-- | src/xwidget.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 008eb07bcae..650572a8896 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -2811,6 +2811,20 @@ xwidget_end_redisplay (struct window *w, struct glyph_matrix *matrix) #ifdef USE_GTK void +lower_frame_xwidget_views (struct frame *f) +{ + struct xwidget_view *xv; + + for (Lisp_Object tail = internal_xwidget_view_list; CONSP (tail); + tail = XCDR (tail)) + { + xv = XXWIDGET_VIEW (XCAR (tail)); + if (xv->frame == f && xv->wdesc != None) + XLowerWindow (xv->dpy, xv->wdesc); + } +} + +void kill_frame_xwidget_views (struct frame *f) { Lisp_Object rem = Qnil; |