Mercurial > dwm-meillo
comparison event.c @ 473:2d8af0d7920d
implemented the maximization as I described on the mailinglist, this feels better to me.
author | arg@mmvi |
---|---|
date | Fri, 22 Sep 2006 07:37:56 +0200 |
parents | ad3fa2d18542 |
children | 3e4596240abb |
comparison
equal
deleted
inserted
replaced
472:298be2d65d2e | 473:2d8af0d7920d |
---|---|
128 togglemode(NULL); | 128 togglemode(NULL); |
129 } | 129 } |
130 } | 130 } |
131 else if((c = getclient(ev->window))) { | 131 else if((c = getclient(ev->window))) { |
132 focus(c); | 132 focus(c); |
133 if(maximized || CLEANMASK(ev->state) != MODKEY) | 133 if(CLEANMASK(ev->state) != MODKEY) |
134 return; | 134 return; |
135 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { | 135 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { |
136 restack(c); | 136 restack(c); |
137 movemouse(c); | 137 movemouse(c); |
138 } | 138 } |
168 Client *c; | 168 Client *c; |
169 XConfigureRequestEvent *ev = &e->xconfigurerequest; | 169 XConfigureRequestEvent *ev = &e->xconfigurerequest; |
170 XWindowChanges wc; | 170 XWindowChanges wc; |
171 | 171 |
172 if((c = getclient(ev->window))) { | 172 if((c = getclient(ev->window))) { |
173 if((c == sel) && !c->isfloat && (arrange != dofloat) && maximized) { | 173 if((c == sel) && !c->isfloat && (arrange != dofloat)) { |
174 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width); | 174 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width); |
175 XSync(dpy, False); | 175 XSync(dpy, False); |
176 return; | 176 return; |
177 } | 177 } |
178 gravitate(c, True); | 178 gravitate(c, True); |