]> git.eshelyaron.com Git - emacs.git/commit
Protect windows from garbage collection when a ClientMessage is pending
authorPo Lu <luangruo@yahoo.com>
Sat, 16 Apr 2022 08:48:02 +0000 (16:48 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 16 Apr 2022 08:50:02 +0000 (16:50 +0800)
commit760107639be7657c4a209c9c04b17c79fc19f2c6
treecd95537544150d9d0ff503617de69782e0785ead
parent09f905c80b1b678152ed966a4a78edc07775aa00
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.
src/xterm.c
src/xterm.h