summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mnt.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-04-16 16:48:02 +0800
committerPo Lu <luangruo@yahoo.com>2022-04-16 16:50:02 +0800
commit760107639be7657c4a209c9c04b17c79fc19f2c6 (patch)
treecd95537544150d9d0ff503617de69782e0785ead /lisp/emacs-lisp/lisp-mnt.el
parent09f905c80b1b678152ed966a4a78edc07775aa00 (diff)
downloademacs-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