Fix x-focus-frame bug with "Not an in-range integer".
commit11bd10a7df907289382bd6f06753e274376d7629
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Oct 2014 02:20:52 +0000 (2 19:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Oct 2014 02:20:52 +0000 (2 19:20 -0700)
tree328d75ecf3ac1c6e1c391ad503577f4853f2708c
parent7118822435bafe077c73b026e9e463a10e96f09a
Fix x-focus-frame bug with "Not an in-range integer".

* xselect.c (X_SHRT_MAX, X_SHRT_MIN, X_LONG_MAX, X_LONG_MIN)
(X_ULONG_MAX): Move these macros to xterm.h.
(x_fill_property_data): Be more generous about allowing either
signed or unsigned data of the appropriate width.
* xterm.h (x_display_set_last_user_time): New function.
All setters of last_user_time changd to use this function.
If ENABLE_CHECKING, check that the times are in range.

Fixes: debbugs:18586
src/ChangeLog
src/xselect.c
src/xterm.c
src/xterm.h