diff -up dwm-5.9/config.def.h dwm-5.9-patch_xine/config.def.h --- dwm-5.9/config.def.h 2011-07-10 22:24:25.000000000 +0200 +++ dwm-5.9-patch_xine/config.def.h 2011-07-17 10:13:24.000000000 +0200 @@ -67,10 +67,12 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, +#ifdef XINERAMA { MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, +#endif /* XINERAMA */ TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) diff -up dwm-5.9/dwm.c dwm-5.9-patch_xine/dwm.c --- dwm-5.9/dwm.c 2011-07-10 22:24:25.000000000 +0200 +++ dwm-5.9-patch_xine/dwm.c 2011-07-17 10:05:28.000000000 +0200 @@ -37,7 +37,7 @@ #include #include #ifdef XINERAMA -#include + #include #endif /* XINERAMA */ /* macros */ @@ -172,7 +172,9 @@ static void destroynotify(XEvent *e); static void detach(Client *c); static void detachstack(Client *c); static void die(const char *errstr, ...); -static Monitor *dirtomon(int dir); +#ifdef XINERAMA + static Monitor *dirtomon(int dir); +#endif /* XINERAMA */ static void drawbar(Monitor *m); static void drawbars(void); static void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]); @@ -181,7 +183,9 @@ static void enternotify(XEvent *e); static void expose(XEvent *e); static void focus(Client *c); static void focusin(XEvent *e); -static void focusmon(const Arg *arg); +#ifdef XINERAMA + static void focusmon(const Arg *arg); +#endif /* XINERAMA */ static void focusstack(const Arg *arg); static unsigned long getcolor(const char *colstr); static Bool getrootptr(int *x, int *y); @@ -219,7 +223,9 @@ static void showhide(Client *c); static void sigchld(int unused); static void spawn(const Arg *arg); static void tag(const Arg *arg); -static void tagmon(const Arg *arg); +#ifdef XINERAMA + static void tagmon(const Arg *arg); +#endif /* XINERAMA */ static int textnw(const char *text, unsigned int len); static void tile(Monitor *); static void togglebar(const Arg *arg); @@ -704,6 +710,7 @@ die(const char *errstr, ...) { exit(EXIT_FAILURE); } +#ifdef XINERAMA Monitor * dirtomon(int dir) { Monitor *m = NULL; @@ -720,6 +727,7 @@ dirtomon(int dir) { } return m; } +#endif /* XINERAMA */ void drawbar(Monitor *m) { @@ -878,6 +886,7 @@ focusin(XEvent *e) { /* there are some b setfocus(selmon->sel); } +#ifdef XINERAMA void focusmon(const Arg *arg) { Monitor *m; @@ -890,6 +899,7 @@ focusmon(const Arg *arg) { selmon = m; focus(NULL); } +#endif /* XINERAMA */ void focusstack(const Arg *arg) { @@ -1621,12 +1631,14 @@ tag(const Arg *arg) { } } +#ifdef XINERAMA void tagmon(const Arg *arg) { if(!selmon->sel || !mons->next) return; sendmon(selmon->sel, dirtomon(arg->i)); } +#endif /* XINERAMA */ int textnw(const char *text, unsigned int len) {