author | Anselm R Garbe <garbeam@gmail.com> |
Sat, 17 May 2008 14:38:22 +0100 | |
changeset 1203 | 710f0fc31764 |
child 1206 | 2914cb30c2d4 |
permissions | -rw-r--r-- |
1203
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
1 |
/* See LICENSE file for copyright and license details. */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
2 |
double mfact = MFACT; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
3 |
int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
4 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
5 |
void setmfact(const char *arg); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
6 |
void tile(void); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
7 |
void tilegeom(void); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
8 |
void tileresize(Client *c, int x, int y, int w, int h); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
9 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
10 |
void |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
11 |
setmfact(const char *arg) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
12 |
double d; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
13 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
14 |
if(lt->arrange != tile) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
15 |
return; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
16 |
if(!arg) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
17 |
mfact = MFACT; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
18 |
else { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
19 |
d = strtod(arg, NULL); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
20 |
if(arg[0] == '-' || arg[0] == '+') |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
21 |
d += mfact; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
22 |
if(d < 0.1 || d > 0.9) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
23 |
return; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
24 |
mfact = d; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
25 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
26 |
updategeom(); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
27 |
arrange(); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
28 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
29 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
30 |
void |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
31 |
tile(void) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
32 |
int y, h; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
33 |
unsigned int i, n; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
34 |
Client *c; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
35 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
36 |
for(n = 0, c = nextunfloating(clients); c; c = nextunfloating(c->next), n++); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
37 |
if(n == 0) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
38 |
return; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
39 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
40 |
/* master */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
41 |
c = nextunfloating(clients); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
42 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
43 |
if(n == 1) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
44 |
tileresize(c, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
45 |
else |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
46 |
tileresize(c, mx, my, mw - 2 * c->bw, mh - 2 * c->bw); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
47 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
48 |
if(--n == 0) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
49 |
return; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
50 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
51 |
/* tile stack */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
52 |
y = ty; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
53 |
h = th / n; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
54 |
if(h < bh) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
55 |
h = th; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
56 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
57 |
for(i = 0, c = nextunfloating(c->next); c; c = nextunfloating(c->next), i++) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
58 |
if(i + 1 == n) /* remainder */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
59 |
tileresize(c, tx, y, tw - 2 * c->bw, (ty + th) - y - 2 * c->bw); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
60 |
else |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
61 |
tileresize(c, tx, y, tw - 2 * c->bw, h - 2 * c->bw); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
62 |
if(h != th) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
63 |
y = c->y + c->h + 2 * c->bw; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
64 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
65 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
66 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
67 |
void |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
68 |
tilegeom(void) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
69 |
/* master area geometry */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
70 |
mx = wx; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
71 |
my = wy; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
72 |
mw = mfact * ww; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
73 |
mh = wh; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
74 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
75 |
/* tile area geometry */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
76 |
tx = mx + mw; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
77 |
ty = wy; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
78 |
tw = ww - mw; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
79 |
th = wh; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
80 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
81 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
82 |
void |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
83 |
tileresize(Client *c, int x, int y, int w, int h) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
84 |
resize(c, x, y, w, h, RESIZEHINTS); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
85 |
if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w))) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
86 |
/* client doesn't accept size constraints */ |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
87 |
resize(c, x, y, w, h, False); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
88 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
89 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
90 |
void |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
91 |
zoom(const char *arg) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
92 |
Client *c = sel; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
93 |
|
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
94 |
if(c == nextunfloating(clients)) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
95 |
if(!c || !(c = nextunfloating(c->next))) |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
96 |
return; |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
97 |
if(lt->arrange == tile && !sel->isfloating) { |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
98 |
detach(c); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
99 |
attach(c); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
100 |
focus(c); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
101 |
} |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
102 |
arrange(); |
710f0fc31764
moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents:
diff
changeset
|
103 |
} |