summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.h2
-rw-r--r--event.c6
-rw-r--r--view.c8
3 files changed, 5 insertions, 11 deletions
diff --git a/dwm.h b/dwm.h
index e749f2c..c30f2b3 100644
--- a/dwm.h
+++ b/dwm.h
@@ -101,7 +101,7 @@ extern void (*handler[LASTEvent])(XEvent *); /* event handler */
101extern void (*arrange)(Arg *); /* arrange function, indicates mode */ 101extern void (*arrange)(Arg *); /* arrange function, indicates mode */
102extern Atom wmatom[WMLast], netatom[NetLast]; 102extern Atom wmatom[WMLast], netatom[NetLast];
103extern Bool running, issel, *seltag; /* seltag is array of Bool */ 103extern Bool running, issel, *seltag; /* seltag is array of Bool */
104extern Client *clients, *sel, *stack; /* global cleint list and stack */ 104extern Client *clients, *sel, *stack; /* global client list and stack */
105extern Cursor cursor[CurLast]; 105extern Cursor cursor[CurLast];
106extern DC dc; /* global draw context */ 106extern DC dc; /* global draw context */
107extern Display *dpy; 107extern Display *dpy;
diff --git a/event.c b/event.c
index 83301bc..df0a5ef 100644
--- a/event.c
+++ b/event.c
@@ -190,11 +190,7 @@ configurerequest(XEvent *e) {
190 XWindowChanges wc; 190 XWindowChanges wc;
191 191
192 if((c = getclient(ev->window))) { 192 if((c = getclient(ev->window))) {
193 if((c == sel) && !c->isfloat && (arrange != dofloat)) { 193 c->ismax = False;
194 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
195 XSync(dpy, False);
196 return;
197 }
198 gravitate(c, True); 194 gravitate(c, True);
199 if(ev->value_mask & CWX) 195 if(ev->value_mask & CWX)
200 c->x = ev->x; 196 c->x = ev->x;
diff --git a/view.c b/view.c
index 44c0b30..e799094 100644
--- a/view.c
+++ b/view.c
@@ -101,9 +101,8 @@ dotile(Arg *arg) {
101 Client *c; 101 Client *c;
102 102
103 w = sw - mw; 103 w = sw - mw;
104 for(n = 0, c = clients; c; c = c->next) 104 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
105 if(isvisible(c) && !c->isfloat) 105 n++;
106 n++;
107 106
108 if(n > 1) 107 if(n > 1)
109 h = (sh - bh) / (n - 1); 108 h = (sh - bh) / (n - 1);
@@ -116,8 +115,7 @@ dotile(Arg *arg) {
116 resize(c, True, TopLeft); 115 resize(c, True, TopLeft);
117 continue; 116 continue;
118 } 117 }
119 if(c->ismax) 118 c->ismax = False;
120 togglemax(c);
121 if(n == 1) { 119 if(n == 1) {
122 c->x = sx; 120 c->x = sx;
123 c->y = sy + bh; 121 c->y = sy + bh;