]> git.eshelyaron.com Git - emacs.git/commit
Add more error checking to some X functions
authorPo Lu <luangruo@yahoo.com>
Tue, 24 May 2022 13:20:46 +0000 (21:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 24 May 2022 13:20:46 +0000 (21:20 +0800)
commit6f3925eace76a39850c0c108a9e1fd0c010e803d
tree684ba661716dcbac46cbeef6820a79e39e27fdb0
parent7c4a780721a64bf429bc87557922a46870a924c5
Add more error checking to some X functions

* src/xfns.c (Fx_change_window_property, Fx_delete_window_property)
(Fx_window_property, Fx_window_property_attributes): Check for
errors in case the window is invalid.  Also use better function
for interning prop names.

* src/xterm.c (struct x_atom_ref): New structure.
(x_atom_refs): New list.  Extract from x_term_init.
(x_intern_cached_atom): New function.  Use it in several places
to avoid interning common atoms.
(x_term_init): Adjust accordingly.

* src/xterm.h: Update prototypes.
src/xfns.c
src/xterm.c
src/xterm.h