Simplify macro guards for HAVE_XRANDR

This commit is contained in:
Norbert Lange
2021-02-22 14:32:53 +01:00
parent 29eaf09be4
commit d4b293e969
7 changed files with 12 additions and 14 deletions

View File

@ -7,7 +7,7 @@
#include <string>
#include <vector>
#if defined(HAVE_XRANDR) && HAVE_XRANDR
#ifdef HAVE_XRANDR
#include <X11/extensions/Xrandr.h>
#endif
#include <X11/Xlib.h>
@ -26,7 +26,7 @@ Display* XDisplayFromHandle(void* Handle);
void InhibitScreensaver(Window win, bool suspend);
#if defined(HAVE_XRANDR) && HAVE_XRANDR
#ifdef HAVE_XRANDR
class XRRConfiguration
{
public: