summaryrefslogtreecommitdiffstats
path: root/tile.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-19 12:34:54 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-19 12:34:54 +0100
commit549726869bd88f70727ecae8a28161700395b20b (patch)
tree39e41433bfe364577b335dcd96719cdf15333dd9 /tile.c
parentnew stuff (diff)
downloaddwm-549726869bd88f70727ecae8a28161700395b20b.tar.gz
dwm-549726869bd88f70727ecae8a28161700395b20b.zip
recent changes, introduced togglebar, changed some defines into variable declarations where possible
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tile.c b/tile.c
index ab21ec9..46cb500 100644
--- a/tile.c
+++ b/tile.c
@@ -1,5 +1,4 @@
1/* See LICENSE file for copyright and license details. */ 1/* See LICENSE file for copyright and license details. */
2double mfact = MFACT;
3int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh; 2int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh;
4 3
5void setmfact(const char *arg); 4void setmfact(const char *arg);
@@ -11,10 +10,8 @@ void
11setmfact(const char *arg) { 10setmfact(const char *arg) {
12 double d; 11 double d;
13 12
14 if(lt->arrange != tile) 13 if(!arg || lt->arrange != tile)
15 return; 14 return;
16 if(!arg)
17 mfact = MFACT;
18 else { 15 else {
19 d = strtod(arg, NULL); 16 d = strtod(arg, NULL);
20 if(arg[0] == '-' || arg[0] == '+') 17 if(arg[0] == '-' || arg[0] == '+')
@@ -66,8 +63,8 @@ tile(void) {
66 63
67void 64void
68tileresize(Client *c, int x, int y, int w, int h) { 65tileresize(Client *c, int x, int y, int w, int h) {
69 resize(c, x, y, w, h, RESIZEHINTS); 66 resize(c, x, y, w, h, resizehints);
70 if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w))) 67 if(resizehints && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w)))
71 /* client doesn't accept size constraints */ 68 /* client doesn't accept size constraints */
72 resize(c, x, y, w, h, False); 69 resize(c, x, y, w, h, False);
73} 70}
@@ -89,6 +86,9 @@ zoom(const char *arg) {
89 86
90void 87void
91updatetilegeom(void) { 88updatetilegeom(void) {
89#ifdef TILEGEOM /* define your own if you are Xinerama user */
90 TILEGEOM
91#else
92 /* master area geometry */ 92 /* master area geometry */
93 mx = wx; 93 mx = wx;
94 my = wy; 94 my = wy;
@@ -100,4 +100,5 @@ updatetilegeom(void) {
100 ty = wy; 100 ty = wy;
101 tw = ww - mw; 101 tw = ww - mw;
102 th = wh; 102 th = wh;
103#endif
103} 104}