From 07b0c81dd26591501974be532e955124a6b098b7 Mon Sep 17 00:00:00 2001 From: Tin Date: Wed, 8 Nov 2023 05:44:18 +0100 Subject: [PATCH] Cleanup display-x11 includes Signed-off-by: Tin --- src/display-x11.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/display-x11.cc b/src/display-x11.cc index 0bf9db1a9..1c42cdb4b 100644 --- a/src/display-x11.cc +++ b/src/display-x11.cc @@ -24,12 +24,12 @@ * */ -#include #include -#include -#include "logging.h" #ifdef BUILD_X11 +#include +#include +#include "display-x11.hh" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wvariadic-macros" #include @@ -37,13 +37,12 @@ #include #endif /* BUILD_XFT */ #pragma GCC diagnostic pop -#include "x11.h" #ifdef BUILD_XDAMAGE #include #endif /* BUILD_XDAMAGE */ #include "fonts.h" #ifdef BUILD_IMLIB2 -#include "imlib2.h" +#include #endif /* BUILD_IMLIB2 */ #ifdef BUILD_MOUSE_EVENTS #include "mouse-events.h" @@ -53,18 +52,17 @@ #include #include #include +#include #include "colours.h" #include "conky.h" -#include "display-x11.hh" #include "gui.h" #include "llua.h" +#include "logging.h" /* TODO: cleanup global namespace */ #ifdef BUILD_X11 -#include "x11.h" - // TODO: cleanup externs (move to conky.h ?) #ifdef OWN_WINDOW extern int fixed_size, fixed_pos;