]> code.delx.au - gnu-emacs/commitdiff
Fix ifdef-vs-if typo with RANDR13_LIBRARY
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Jun 2016 05:40:18 +0000 (22:40 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 16 Jun 2016 17:31:08 +0000 (13:31 -0400)
* 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)

src/xfns.c

index b22af5c830d0debd05865dcc2c22dbf0e0dd8f36..7c1bb1c2819d1a39304d99c22e382769e4804dc4 100644 (file)
@@ -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