#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
#define LENGTH(x) (sizeof x / sizeof x[0])
-#define MAXTAGLEN 16
+#define MAXLEN 16
#define MOUSEMASK (BUTTONMASK|PointerMotionMask)
void manage(Window w, XWindowAttributes *wa);
void mappingnotify(XEvent *e);
void maprequest(XEvent *e);
+void maximise(void);
void movemouse(Client *c);
Client *nexttiled(Client *c);
void propertynotify(XEvent *e);
manage(ev->window, &wa);
}
+void
+maximise(void) {
+ Client *c;
+
+ domwfact = dozoom = False;
+ for(c = nexttiled(clients); c; c = nexttiled(c->next))
+ resize(c, wax, way, waw - 2 * c->border, wah - 2 * c->border, RESIZEHINTS);
+}
+
void
movemouse(Client *c) {
int x1, y1, ocx, ocy, di, nx, ny;
}
else {
for(i = 0; i < LENGTH(layouts); i++)
- if(arg == layouts[i].symbol)
+ if(!strcmp(arg, layouts[i].symbol))
break;
if(i == LENGTH(layouts))
return;