Skip to content

Commit

Permalink
Cleanup display-x11 includes
Browse files Browse the repository at this point in the history
Signed-off-by: Tin <[email protected]>
  • Loading branch information
Caellian committed Nov 8, 2023
1 parent 091efc3 commit 07b0c81
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/display-x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,25 @@
*
*/

#include <X11/X.h>
#include <config.h>
#include <cstdint>
#include "logging.h"

#ifdef BUILD_X11
#include <x11.h>
#include <X11/X.h>
#include "display-x11.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wvariadic-macros"
#include <X11/Xutil.h>
#ifdef BUILD_XFT
#include <X11/Xlib.h>
#endif /* BUILD_XFT */
#pragma GCC diagnostic pop
#include "x11.h"
#ifdef BUILD_XDAMAGE
#include <X11/extensions/Xdamage.h>
#endif /* BUILD_XDAMAGE */
#include "fonts.h"
#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include <imlib2.h>
#endif /* BUILD_IMLIB2 */
#ifdef BUILD_MOUSE_EVENTS
#include "mouse-events.h"
Expand All @@ -53,18 +52,17 @@
#include <iostream>
#include <sstream>
#include <unordered_map>
#include <cstdint>

#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;
Expand Down

0 comments on commit 07b0c81

Please sign in to comment.