summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-10 10:16:12 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-10 10:16:12 +0200
commitb79b5facb104a653314577bb7f15824396b9e94b (patch)
treea145b85cb026c7965b27b3db9ae3bcf0fdaa63bb /event.c
parentadded zoom on Mod1-Button1 on managed clients only (there is no moving possible) (diff)
downloaddwm-b79b5facb104a653314577bb7f15824396b9e94b.tar.gz
dwm-b79b5facb104a653314577bb7f15824396b9e94b.zip
disallow zoom on maximized clients
Diffstat (limited to '')
-rw-r--r--event.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/event.c b/event.c
index b6beed5..0f984f2 100644
--- a/event.c
+++ b/event.c
@@ -127,15 +127,14 @@ buttonpress(XEvent *e)
127 default: 127 default:
128 break; 128 break;
129 case Button1: 129 case Button1:
130 if(!c->ismax && (arrange == dofloat || c->isfloat)) { 130 if(!c->ismax) {
131 higher(c); 131 if(arrange == dofloat || c->isfloat) {
132 movemouse(c); 132 higher(c);
133 movemouse(c);
134 }
135 else
136 zoom(NULL);
133 } 137 }
134 else
135 zoom(NULL);
136 break;
137 case Button2:
138 lower(c);
139 break; 138 break;
140 case Button3: 139 case Button3:
141 if(!c->ismax && (arrange == dofloat || c->isfloat)) { 140 if(!c->ismax && (arrange == dofloat || c->isfloat)) {
@@ -225,7 +224,7 @@ enternotify(XEvent *e)
225 Client *c; 224 Client *c;
226 XCrossingEvent *ev = &e->xcrossing; 225 XCrossingEvent *ev = &e->xcrossing;
227 226
228 if(ev->detail == NotifyInferior) 227 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
229 return; 228 return;
230 229
231 if((c = getclient(ev->window)) || (c = getctitle(ev->window))) 230 if((c = getclient(ev->window)) || (c = getctitle(ev->window)))