summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 1c8fb74..90bfca2 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -27,6 +27,8 @@
#include <X11/Xproto.h>
#include <X11/Xutil.h>
+#include <X11/extensions/Xinerama.h>
+
#include "defs.h"
void add_client(Window w);
@@ -79,9 +81,6 @@ void xev_case(XEvent *xev);
INIT_WORKSPACE
#include "config.h"
-#ifdef XINERAMA_SUPPORT
-#include <X11/extensions/Xinerama.h>
-#endif
Atom atom_wm_delete;
Atom atom_wm_strut_partial;
@@ -1389,7 +1388,6 @@ update_monitors(void)
XDefineCursor(dpy, scr_root, c_normal);
}
-#ifdef XINERAMA_SUPPORT
if (XineramaIsActive(dpy)) {
info = XineramaQueryScreens(dpy, &monsn);
mons = malloc(sizeof *mons * monsn);
@@ -1400,9 +1398,7 @@ update_monitors(void)
mons[i].h = info[i].height;
}
XFree(info);
- } else
-#endif
- {
+ } else {
monsn = 1;
mons = malloc(sizeof *mons);
mons[0].x = 0;