applied sanders jukka patch 7d7cde0f
arg@mmvi · 2006-09-25 20:38 3 file(s) · +5 −11
dwm.h +1 −1
101 101
extern void (*arrange)(Arg *);			/* arrange function, indicates mode  */
102 102
extern Atom wmatom[WMLast], netatom[NetLast];
103 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 105
extern Cursor cursor[CurLast];
106 106
extern DC dc;					/* global draw context */
107 107
extern Display *dpy;
event.c +1 −5
190 190
	XWindowChanges wc;
191 191
192 192
	if((c = getclient(ev->window))) {
193 -
		if((c == sel) && !c->isfloat && (arrange != dofloat)) {
194 -
			synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
195 -
			XSync(dpy, False);
196 -
			return;
197 -
		}
193 +
		c->ismax = False;
198 194
		gravitate(c, True);
199 195
		if(ev->value_mask & CWX)
200 196
			c->x = ev->x;
view.c +3 −5
101 101
	Client *c;
102 102
103 103
	w = sw - mw;
104 -
	for(n = 0, c = clients; c; c = c->next)
105 -
		if(isvisible(c) && !c->isfloat)
106 -
			n++;
104 +
	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
105 +
		n++;
107 106
108 107
	if(n > 1)
109 108
		h = (sh - bh) / (n - 1);
116 115
				resize(c, True, TopLeft);
117 116
				continue;
118 117
			}
119 -
			if(c->ismax)
120 -
				togglemax(c);
118 +
			c->ismax = False;
121 119
			if(n == 1) {
122 120
				c->x = sx;
123 121
				c->y = sy + bh;