summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-06-14 22:40:18 -0700
committerGlenn Morris <rgm@gnu.org>2016-06-16 13:31:08 -0400
commitd765175ef1179f834c25fd856ace63c3dc37162c (patch)
tree5dc8e71c985a38efcea81bb1bf0c9423e9ef9023 /src
parent2317c61868044dc1fea58d9e81f35d354f24fd69 (diff)
downloademacs-d765175ef1179f834c25fd856ace63c3dc37162c.tar.gz
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 dce99f222f1ca33265cd56ddb157817be1dc078e)
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index b22af5c830d..7c1bb1c2819 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -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