some minor fix if xinerama is disabled, still some odd behavior in there
25c1eb28
2 file(s) · +5 −3
| 11 | 11 | X11LIB = /usr/X11R6/lib |
|
| 12 | 12 | ||
| 13 | 13 | # Xinerama, un-comment if you want it |
|
| 14 | - | XINERAMALIBS = -L${X11LIB} -lXinerama |
|
| 15 | - | XINERAMAFLAGS = -DXINERAMA |
|
| 14 | + | #XINERAMALIBS = -L${X11LIB} -lXinerama |
|
| 15 | + | #XINERAMAFLAGS = -DXINERAMA |
|
| 16 | 16 | ||
| 17 | 17 | # includes and libs |
|
| 18 | 18 | INCS = -I. -I/usr/include -I${X11INC} |
| 179 | 179 | static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size); |
|
| 180 | 180 | static void grabbuttons(Client *c, Bool focused); |
|
| 181 | 181 | static void grabkeys(void); |
|
| 182 | - | static Monitor *idxtomon(unsigned int n); |
|
| 183 | 182 | static void initfont(const char *fontstr); |
|
| 184 | 183 | static Bool isprotodel(Client *c); |
|
| 185 | 184 | static void keypress(XEvent *e); |
|
| 233 | 232 | static void zoom(const Arg *arg); |
|
| 234 | 233 | #ifdef XINERAMA |
|
| 235 | 234 | static void focusmon(const Arg *arg); |
|
| 235 | + | static Monitor *idxtomon(unsigned int n); |
|
| 236 | 236 | static void tagmon(const Arg *arg); |
|
| 237 | 237 | #endif /* XINERAMA */ |
|
| 238 | 238 | ||
| 943 | 943 | } |
|
| 944 | 944 | } |
|
| 945 | 945 | ||
| 946 | + | #ifdef XINERAMA |
|
| 946 | 947 | Monitor * |
|
| 947 | 948 | idxtomon(unsigned int n) { |
|
| 948 | 949 | unsigned int i; |
|
| 951 | 952 | for(m = mons, i = 0; m && i != n; m = m->next, i++); |
|
| 952 | 953 | return m; |
|
| 953 | 954 | } |
|
| 955 | + | #endif /* XINERAMA */ |
|
| 954 | 956 | ||
| 955 | 957 | void |
|
| 956 | 958 | initfont(const char *fontstr) { |
|