summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tile.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/tile.c b/tile.c
index 3cdaf49..ab21ec9 100644
--- a/tile.c
+++ b/tile.c
@@ -4,8 +4,8 @@ int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh;
4 4
5void setmfact(const char *arg); 5void setmfact(const char *arg);
6void tile(void); 6void tile(void);
7void tilegeom(void);
8void tileresize(Client *c, int x, int y, int w, int h); 7void tileresize(Client *c, int x, int y, int w, int h);
8void updatetilegeom(void);
9 9
10void 10void
11setmfact(const char *arg) { 11setmfact(const char *arg) {
@@ -65,21 +65,6 @@ tile(void) {
65} 65}
66 66
67void 67void
68tilegeom(void) {
69 /* master area geometry */
70 mx = wx;
71 my = wy;
72 mw = mfact * ww;
73 mh = wh;
74
75 /* tile area geometry */
76 tx = mx + mw;
77 ty = wy;
78 tw = ww - mw;
79 th = wh;
80}
81
82void
83tileresize(Client *c, int x, int y, int w, int h) { 68tileresize(Client *c, int x, int y, int w, int h) {
84 resize(c, x, y, w, h, RESIZEHINTS); 69 resize(c, x, y, w, h, RESIZEHINTS);
85 if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w))) 70 if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w)))
@@ -101,3 +86,18 @@ zoom(const char *arg) {
101 } 86 }
102 arrange(); 87 arrange();
103} 88}
89
90void
91updatetilegeom(void) {
92 /* master area geometry */
93 mx = wx;
94 my = wy;
95 mw = mfact * ww;
96 mh = wh;
97
98 /* tile area geometry */
99 tx = mx + mw;
100 ty = wy;
101 tw = ww - mw;
102 th = wh;
103}