diff options
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 6 | ||||
| -rw-r--r-- | view.c | 8 |
3 files changed, 5 insertions, 11 deletions
| @@ -101,7 +101,7 @@ extern void (*handler[LASTEvent])(XEvent *); /* event handler */ | |||
| 101 | extern void (*arrange)(Arg *); /* arrange function, indicates mode */ | 101 | extern void (*arrange)(Arg *); /* arrange function, indicates mode */ |
| 102 | extern Atom wmatom[WMLast], netatom[NetLast]; | 102 | extern Atom wmatom[WMLast], netatom[NetLast]; |
| 103 | extern Bool running, issel, *seltag; /* seltag is array of Bool */ | 103 | extern Bool running, issel, *seltag; /* seltag is array of Bool */ |
| 104 | extern Client *clients, *sel, *stack; /* global cleint list and stack */ | 104 | extern Client *clients, *sel, *stack; /* global client list and stack */ |
| 105 | extern Cursor cursor[CurLast]; | 105 | extern Cursor cursor[CurLast]; |
| 106 | extern DC dc; /* global draw context */ | 106 | extern DC dc; /* global draw context */ |
| 107 | extern Display *dpy; | 107 | extern Display *dpy; |
| @@ -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; |
| @@ -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; |
