diff options
author | Po Lu <luangruo@yahoo.com> | 2022-04-16 16:48:02 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-04-16 16:50:02 +0800 |
commit | 760107639be7657c4a209c9c04b17c79fc19f2c6 (patch) | |
tree | cd95537544150d9d0ff503617de69782e0785ead /lisp/emacs-lisp/lisp-mnt.el | |
parent | 09f905c80b1b678152ed966a4a78edc07775aa00 (diff) | |
download | emacs-760107639be7657c4a209c9c04b17c79fc19f2c6.tar.gz emacs-760107639be7657c4a209c9c04b17c79fc19f2c6.tar.bz2 emacs-760107639be7657c4a209c9c04b17c79fc19f2c6.zip |
Protect windows from garbage collection when a ClientMessage is pending
* src/xterm.c (x_protect_window_for_callback)
(x_unprotect_window_for_callback): New functions.
(x_send_scroll_bar_event): Protect windows from garbage
collection before sending event containing pointer to window.
(handle_one_xevent): Unprotect after such a ClientMessage is
received and the window put in the keyboard buffer.
(x_term_init): Initialize protected windows list.
(x_delete_display): Free that list.
(mark_xterm): Mark the windows in that list.
* src/xterm.h (struct x_display_info): New fields for recording
a list of protected windows.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions