summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/layout.c b/layout.c
index 1e8f113..bb477d6 100644
--- a/layout.c
+++ b/layout.c
@@ -31,7 +31,7 @@ tile(void) {
31 if(c->isbanned) 31 if(c->isbanned)
32 XMoveWindow(dpy, c->win, c->x, c->y); 32 XMoveWindow(dpy, c->win, c->x, c->y);
33 c->isbanned = False; 33 c->isbanned = False;
34 if(c->isversatile) 34 if(c->isuntiled)
35 continue; 35 continue;
36 c->ismax = False; 36 c->ismax = False;
37 nx = wax; 37 nx = wax;
@@ -148,7 +148,7 @@ initlayouts(void) {
148 148
149Client * 149Client *
150nexttiled(Client *c) { 150nexttiled(Client *c) {
151 for(; c && (c->isversatile || !isvisible(c)); c = c->next); 151 for(; c && (c->isuntiled || !isvisible(c)); c = c->next);
152 return c; 152 return c;
153} 153}
154 154
@@ -160,10 +160,10 @@ restack(void) {
160 drawstatus(); 160 drawstatus();
161 if(!sel) 161 if(!sel)
162 return; 162 return;
163 if(sel->isversatile || lt->arrange == versatile) 163 if(sel->isuntiled || lt->arrange == untile)
164 XRaiseWindow(dpy, sel->win); 164 XRaiseWindow(dpy, sel->win);
165 if(lt->arrange != versatile) { 165 if(lt->arrange != untile) {
166 if(!sel->isversatile) 166 if(!sel->isuntiled)
167 XLowerWindow(dpy, sel->win); 167 XLowerWindow(dpy, sel->win);
168 for(c = nexttiled(clients); c; c = nexttiled(c->next)) { 168 for(c = nexttiled(clients); c; c = nexttiled(c->next)) {
169 if(c == sel) 169 if(c == sel)
@@ -202,7 +202,7 @@ void
202togglemax(const char *arg) { 202togglemax(const char *arg) {
203 XEvent ev; 203 XEvent ev;
204 204
205 if(!sel || (lt->arrange != versatile && !sel->isversatile) || sel->isfixed) 205 if(!sel || (lt->arrange != untile && !sel->isuntiled) || sel->isfixed)
206 return; 206 return;
207 if((sel->ismax = !sel->ismax)) { 207 if((sel->ismax = !sel->ismax)) {
208 sel->rx = sel->x; 208 sel->rx = sel->x;
@@ -218,7 +218,7 @@ togglemax(const char *arg) {
218} 218}
219 219
220void 220void
221versatile(void) { 221untile(void) {
222 Client *c; 222 Client *c;
223 223
224 for(c = clients; c; c = c->next) { 224 for(c = clients; c; c = c->next) {
@@ -245,7 +245,7 @@ zoom(const char *arg) {
245 unsigned int n; 245 unsigned int n;
246 Client *c; 246 Client *c;
247 247
248 if(!sel || lt->arrange != tile || sel->isversatile) 248 if(!sel || lt->arrange != tile || sel->isuntiled)
249 return; 249 return;
250 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 250 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
251 n++; 251 n++;