aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-07-01 17:08:10 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-07-01 17:08:10 +0100
commit25c1eb28f955adf241226596335f5d73b28620a0 (patch)
tree90179ebd4465ca1c789b09254366e6291bebd974 /dwm.c
parentd719cc9a0e4bc75b555993f1526b24a5f82222a8 (diff)
downloaddwm-25c1eb28f955adf241226596335f5d73b28620a0.tar.gz
some minor fix if xinerama is disabled, still some odd behavior in there
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 5c27113..61ac193 100644
--- a/dwm.c
+++ b/dwm.c
@@ -179,7 +179,6 @@ static long getstate(Window w);
static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
static void grabbuttons(Client *c, Bool focused);
static void grabkeys(void);
-static Monitor *idxtomon(unsigned int n);
static void initfont(const char *fontstr);
static Bool isprotodel(Client *c);
static void keypress(XEvent *e);
@@ -233,6 +232,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
static void zoom(const Arg *arg);
#ifdef XINERAMA
static void focusmon(const Arg *arg);
+static Monitor *idxtomon(unsigned int n);
static void tagmon(const Arg *arg);
#endif /* XINERAMA */
@@ -943,6 +943,7 @@ grabkeys(void) {
}
}
+#ifdef XINERAMA
Monitor *
idxtomon(unsigned int n) {
unsigned int i;
@@ -951,6 +952,7 @@ idxtomon(unsigned int n) {
for(m = mons, i = 0; m && i != n; m = m->next, i++);
return m;
}
+#endif /* XINERAMA */
void
initfont(const char *fontstr) {
remember that computers suck.