diff options
author | Anselm R Garbe | 2009-07-01 17:08:10 +0100 |
---|---|---|
committer | Anselm R Garbe | 2009-07-01 17:08:10 +0100 |
commit | b8e6cfd9b4ee78ca94261c831d86fef5885854fc (patch) | |
tree | 52306dec8c5cb01d9189b3a0ea0a1d7652a8284a /dwm.c | |
parent | 265f2bdc74e16b6508ef7752cf2ebf82de6b94f8 (diff) | |
download | aur-b8e6cfd9b4ee78ca94261c831d86fef5885854fc.tar.gz |
some minor fix if xinerama is disabled, still some odd behavior in there
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |