comparison event.c @ 400:052657ff2e7b

applied Sanders max_and_focus.patch
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 04 Sep 2006 08:55:49 +0200
parents 74739798b0b2
children ffb462fb7903
comparison
equal deleted inserted replaced
399:74739798b0b2 400:052657ff2e7b
129 togglemode(NULL); 129 togglemode(NULL);
130 } 130 }
131 } 131 }
132 else if((c = getclient(ev->window))) { 132 else if((c = getclient(ev->window))) {
133 focus(c); 133 focus(c);
134 if(c->ismax || CLEANMASK(ev->state) != MODKEY) 134 if(maximized || CLEANMASK(ev->state) != MODKEY)
135 return; 135 return;
136 if((ev->button == Button1) && ((arrange == dofloat) || c->isfloat)) { 136 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
137 restack(c); 137 restack(c);
138 movemouse(c); 138 movemouse(c);
139 } 139 }
140 else if(ev->button == Button2) 140 else if(ev->button == Button2)
141 zoom(NULL); 141 zoom(NULL);
142 else if(ev->button == Button3 && ((arrange == dofloat) || c->isfloat)) { 142 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
143 restack(c); 143 restack(c);
144 resizemouse(c); 144 resizemouse(c);
145 } 145 }
146 } 146 }
147 } 147 }
171 Client *c; 171 Client *c;
172 XConfigureRequestEvent *ev = &e->xconfigurerequest; 172 XConfigureRequestEvent *ev = &e->xconfigurerequest;
173 XWindowChanges wc; 173 XWindowChanges wc;
174 174
175 if((c = getclient(ev->window))) { 175 if((c = getclient(ev->window))) {
176 if(!c->isfloat && (arrange != dofloat) && c->ismax) { 176 if((c == sel) && !c->isfloat && (arrange != dofloat) && maximized) {
177 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width); 177 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
178 XSync(dpy, False); 178 XSync(dpy, False);
179 return; 179 return;
180 } 180 }
181 gravitate(c, True); 181 gravitate(c, True);