]> git.eshelyaron.com Git - emacs.git/commit
Destroy xwidgets when destroying frames
authorPo Lu <luangruo@yahoo.com>
Fri, 29 Oct 2021 11:26:49 +0000 (19:26 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:39 +0000 (02:59 +0100)
commit9c9e15a0186603ef4bddd4df5f448f880636f4da
treee1f674ee58dce25696d90c6f7d3d27eefae5cc90
parent5c387ad437872c6e95599710ba5dcdfaa470c5ea
Destroy xwidgets when destroying frames

* src/xterm.c (x_free_frame_resources): Make sure to kill xwidget views.
* src/xwidget.c (Fmake_xwidget): Attach damage event signal.
(offscreen_damage_event): Operate on xwidgets and not individual
views.
(xwidget_init_view): Don't attach damage event signal here.
(Fdelete_xwidget_view): Destroy window correctly and stop removing
damage event signal.
(kill_frame_xwidget_views): New function.
* src/xwidget.c (kill_frame_xwidget_views): New function.
src/xterm.c
src/xwidget.c
src/xwidget.h