Mercurial > dwm-meillo
comparison event.c @ 232:98e9901b1dbb
disallow zoom on maximized clients
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Thu, 10 Aug 2006 10:16:12 +0200 |
parents | f7e87c894b5e |
children | 969fb6be25e1 |
comparison
equal
deleted
inserted
replaced
231:f7e87c894b5e | 232:98e9901b1dbb |
---|---|
125 focus(c); | 125 focus(c); |
126 switch(ev->button) { | 126 switch(ev->button) { |
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)) { |
142 higher(c); | 141 higher(c); |
143 resizemouse(c); | 142 resizemouse(c); |
223 enternotify(XEvent *e) | 222 enternotify(XEvent *e) |
224 { | 223 { |
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))) |
232 focus(c); | 231 focus(c); |
233 else if(ev->window == root) | 232 else if(ev->window == root) |