/* See LICENSE file for copyright and license details. */
-double mfact = MFACT;
int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh;
void setmfact(const char *arg);
setmfact(const char *arg) {
double d;
- if(lt->arrange != tile)
+ if(!arg || lt->arrange != tile)
return;
- if(!arg)
- mfact = MFACT;
else {
d = strtod(arg, NULL);
if(arg[0] == '-' || arg[0] == '+')
void
tileresize(Client *c, int x, int y, int w, int h) {
- resize(c, x, y, w, h, RESIZEHINTS);
- if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w)))
+ resize(c, x, y, w, h, resizehints);
+ if(resizehints && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w)))
/* client doesn't accept size constraints */
resize(c, x, y, w, h, False);
}
void
updatetilegeom(void) {
+#ifdef TILEGEOM /* define your own if you are Xinerama user */
+ TILEGEOM
+#else
/* master area geometry */
mx = wx;
my = wy;
ty = wy;
tw = ww - mw;
th = wh;
+#endif
}