diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2009-07-01 17:08:10 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2009-07-01 17:08:10 +0100 |
| commit | 25c1eb28f955adf241226596335f5d73b28620a0 (patch) | |
| tree | 90179ebd4465ca1c789b09254366e6291bebd974 /dwm.c | |
| parent | updated year ranges (diff) | |
| download | dwm-25c1eb28f955adf241226596335f5d73b28620a0.tar.gz dwm-25c1eb28f955adf241226596335f5d73b28620a0.zip | |
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); | |||
| 179 | static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size); | 179 | static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size); |
| 180 | static void grabbuttons(Client *c, Bool focused); | 180 | static void grabbuttons(Client *c, Bool focused); |
| 181 | static void grabkeys(void); | 181 | static void grabkeys(void); |
| 182 | static Monitor *idxtomon(unsigned int n); | ||
| 183 | static void initfont(const char *fontstr); | 182 | static void initfont(const char *fontstr); |
| 184 | static Bool isprotodel(Client *c); | 183 | static Bool isprotodel(Client *c); |
| 185 | static void keypress(XEvent *e); | 184 | static void keypress(XEvent *e); |
| @@ -233,6 +232,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee); | |||
| 233 | static void zoom(const Arg *arg); | 232 | static void zoom(const Arg *arg); |
| 234 | #ifdef XINERAMA | 233 | #ifdef XINERAMA |
| 235 | static void focusmon(const Arg *arg); | 234 | static void focusmon(const Arg *arg); |
| 235 | static Monitor *idxtomon(unsigned int n); | ||
| 236 | static void tagmon(const Arg *arg); | 236 | static void tagmon(const Arg *arg); |
| 237 | #endif /* XINERAMA */ | 237 | #endif /* XINERAMA */ |
| 238 | 238 | ||
| @@ -943,6 +943,7 @@ grabkeys(void) { | |||
| 943 | } | 943 | } |
| 944 | } | 944 | } |
| 945 | 945 | ||
| 946 | #ifdef XINERAMA | ||
| 946 | Monitor * | 947 | Monitor * |
| 947 | idxtomon(unsigned int n) { | 948 | idxtomon(unsigned int n) { |
| 948 | unsigned int i; | 949 | unsigned int i; |
| @@ -951,6 +952,7 @@ idxtomon(unsigned int n) { | |||
| 951 | for(m = mons, i = 0; m && i != n; m = m->next, i++); | 952 | for(m = mons, i = 0; m && i != n; m = m->next, i++); |
| 952 | return m; | 953 | return m; |
| 953 | } | 954 | } |
| 955 | #endif /* XINERAMA */ | ||
| 954 | 956 | ||
| 955 | void | 957 | void |
| 956 | initfont(const char *fontstr) { | 958 | initfont(const char *fontstr) { |
