]> git.eshelyaron.com Git - emacs.git/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)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Jun 2016 05:40:40 +0000 (22:40 -0700)
* 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

src/xfns.c

index 9ff77738c11cfa3a1cc6390a3e8e9f2363897073..35e2a236f89cc4ae851b36381e1afbc79a8267d9 100644 (file)
@@ -4286,7 +4286,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