diff options
| author | Paul Eggert | 2016-06-14 22:40:18 -0700 |
|---|---|---|
| committer | Glenn Morris | 2016-06-16 13:31:08 -0400 |
| commit | d765175ef1179f834c25fd856ace63c3dc37162c (patch) | |
| tree | 5dc8e71c985a38efcea81bb1bf0c9423e9ef9023 /src | |
| parent | 2317c61868044dc1fea58d9e81f35d354f24fd69 (diff) | |
| download | emacs-d765175ef1179f834c25fd856ace63c3dc37162c.tar.gz emacs-d765175ef1179f834c25fd856ace63c3dc37162c.zip | |
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.c | 2 |
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) | |||
| 4287 | n_monitors = resources->noutput; | 4287 | n_monitors = resources->noutput; |
| 4288 | monitors = xzalloc (n_monitors * sizeof *monitors); | 4288 | monitors = xzalloc (n_monitors * sizeof *monitors); |
| 4289 | 4289 | ||
| 4290 | #ifdef RANDR13_LIBRARY | 4290 | #if RANDR13_LIBRARY |
| 4291 | if (randr13_avail) | 4291 | if (randr13_avail) |
| 4292 | pxid = XRRGetOutputPrimary (dpy, dpyinfo->root_window); | 4292 | pxid = XRRGetOutputPrimary (dpy, dpyinfo->root_window); |
| 4293 | #endif | 4293 | #endif |