summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 07:37:56 +0200
committerarg@mmvi <unknown>2006-09-22 07:37:56 +0200
commitd800ec05ff63451193a0b858c114f5144534c2a1 (patch)
treecc6261bca4c022b6a22d0a1568bf3ea3ec4c9c06 /event.c
parentreviewed client.c (diff)
downloaddwm-d800ec05ff63451193a0b858c114f5144534c2a1.tar.gz
dwm-d800ec05ff63451193a0b858c114f5144534c2a1.zip
implemented the maximization as I described on the mailinglist, this feels better to me.
Diffstat (limited to '')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 3783eb4..d5f4aa8 100644
--- a/event.c
+++ b/event.c
@@ -130,7 +130,7 @@ buttonpress(XEvent *e) {
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);
@@ -170,7 +170,7 @@ configurerequest(XEvent *e) {
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;