]> code.delx.au - gnu-emacs/commit
Don't use XRANDR 1.3 extensions if the server doesn't support them.
authorKen Raeburn <raeburn@raeburn.org>
Wed, 9 Mar 2016 03:17:16 +0000 (22:17 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Thu, 10 Mar 2016 19:28:54 +0000 (14:28 -0500)
commit8b8a6ad3e3239eb2cff325e72e29dc30fdaa58c5
treefab743803408a7c0fcf1f1416a187f863505b2d1
parent985dacfa0f0186531fdae13718d720cf7e27425f
Don't use XRANDR 1.3 extensions if the server doesn't support them.

* src/xterm.h (struct x_display_info): Add fields to save XRANDR
version number.
* src/xfns.c (x_get_monitor_attributes): Save the version numbers
after querying the X server.
(x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or
XRRGetScreenResourcesCurrent if the server doesn't support at least
RANDR version 1.3.  Conditionalize the code blocks on compiling
against library version 1.3 or better, rather than feature tests for
each function.
* configure.ac: Stop testing for those two functions.
configure.ac
src/xfns.c
src/xterm.h