summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.h4
-rw-r--r--src/sxwm.c10
2 files changed, 4 insertions, 10 deletions
diff --git a/src/config.h b/src/config.h
index 6437468..26df25e 100644
--- a/src/config.h
+++ b/src/config.h
@@ -55,8 +55,6 @@
* ———————————————————————————————————————————*
*/
-#define XINERAMA_SUPPORT 0
-
#define GAPS 10
#define BORDER_WIDTH 1
@@ -161,7 +159,7 @@ CMD(browser, "firefox");
*/
/*< This is your modifier key (ALT/SUPER) >*/
-#define MOD ALT
+#define MOD SUPER
#include <X11/keysym.h>
const Binding binds[] =
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;