Buildfix for X11 where HAVE_XRANDR is disabled

The "X.h" header *just* contains protocol constants, not functions or
typedefs - so stuff like "Display" and "Window" are not defined unless
you include "Xlib.h".

"Xrandr.h" happens to include "Xlib.h" itself, so enabling xrandr
effectively worked around this issue.
This commit is contained in:
Jonathan Hamilton 2017-09-09 11:49:20 -07:00
parent 8f7c6286f4
commit d2d355bb50
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
#if defined(HAVE_XRANDR) && HAVE_XRANDR
#include <X11/extensions/Xrandr.h>
#endif
#include <X11/X.h>
#include <X11/Xlib.h>
// EWMH state actions, see
// http://freedesktop.org/wiki/Specifications/wm-spec?action=show&redirect=Standards%2Fwm-spec