equal
deleted
inserted
replaced
53 void |
53 void |
54 dofloat(void) { |
54 dofloat(void) { |
55 Client *c; |
55 Client *c; |
56 |
56 |
57 for(c = clients; c; c = c->next) { |
57 for(c = clients; c; c = c->next) { |
58 if(isvisible(c)) |
58 if(isvisible(c)) { |
|
59 c->isbanned = False; |
59 resize(c, True); |
60 resize(c, True); |
|
61 } |
60 else |
62 else |
61 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
63 ban(c); |
62 } |
64 } |
63 if(!sel || !isvisible(sel)) { |
65 if(!sel || !isvisible(sel)) { |
64 for(c = stack; c && !isvisible(c); c = c->snext); |
66 for(c = stack; c && !isvisible(c); c = c->snext); |
65 focus(c); |
67 focus(c); |
66 } |
68 } |
80 th = (n > nmaster) ? wah / (n - nmaster) : 0; |
82 th = (n > nmaster) ? wah / (n - nmaster) : 0; |
81 tw = waw - mw; |
83 tw = waw - mw; |
82 |
84 |
83 for(i = 0, c = clients; c; c = c->next) |
85 for(i = 0, c = clients; c; c = c->next) |
84 if(isvisible(c)) { |
86 if(isvisible(c)) { |
|
87 c->isbanned = False; |
85 if(c->isfloat) { |
88 if(c->isfloat) { |
86 resize(c, True); |
89 resize(c, True); |
87 continue; |
90 continue; |
88 } |
91 } |
89 c->ismax = False; |
92 c->ismax = False; |
106 } |
109 } |
107 resize(c, False); |
110 resize(c, False); |
108 i++; |
111 i++; |
109 } |
112 } |
110 else |
113 else |
111 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
114 ban(c); |
112 if(!sel || !isvisible(sel)) { |
115 if(!sel || !isvisible(sel)) { |
113 for(c = stack; c && !isvisible(c); c = c->snext); |
116 for(c = stack; c && !isvisible(c); c = c->snext); |
114 focus(c); |
117 focus(c); |
115 } |
118 } |
116 restack(); |
119 restack(); |