Fix ifdef-vs-if typo with RANDR13_LIBRARY
* src/xfns.c (x_get_monitor_attributes_xrandr): Use #if, not #ifdef.
This ports to systems that predate xrandr 1.3. See Christian Lynbech in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00198.html
(cherry picked from commit dce99f222f
)
This commit is contained in:
parent
2317c61868
commit
d765175ef1
1 changed files with 1 additions and 1 deletions
|
@ -4287,7 +4287,7 @@ x_get_monitor_attributes_xrandr (struct x_display_info *dpyinfo)
|
|||
n_monitors = resources->noutput;
|
||||
monitors = xzalloc (n_monitors * sizeof *monitors);
|
||||
|
||||
#ifdef RANDR13_LIBRARY
|
||||
#if RANDR13_LIBRARY
|
||||
if (randr13_avail)
|
||||
pxid = XRRGetOutputPrimary (dpy, dpyinfo->root_window);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue