summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--view.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/view.c b/view.c
index 8164446..5c06027 100644
--- a/view.c
+++ b/view.c
@@ -55,10 +55,12 @@ 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);
@@ -82,6 +84,7 @@ dotile(void) {
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;
@@ -108,7 +111,7 @@ dotile(void) {
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);