diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-10 10:16:12 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-10 10:16:12 +0200 |
| commit | b79b5facb104a653314577bb7f15824396b9e94b (patch) | |
| tree | a145b85cb026c7965b27b3db9ae3bcf0fdaa63bb | |
| parent | added zoom on Mod1-Button1 on managed clients only (there is no moving possible) (diff) | |
| download | dwm-b79b5facb104a653314577bb7f15824396b9e94b.tar.gz dwm-b79b5facb104a653314577bb7f15824396b9e94b.zip | |
disallow zoom on maximized clients
| -rw-r--r-- | client.c | 7 | ||||
| -rw-r--r-- | dwm.1 | 4 | ||||
| -rw-r--r-- | dwm.h | 1 | ||||
| -rw-r--r-- | event.c | 17 |
4 files changed, 8 insertions, 21 deletions
| @@ -197,13 +197,6 @@ killclient(Arg *arg) | |||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | void | 199 | void |
| 200 | lower(Client *c) | ||
| 201 | { | ||
| 202 | XLowerWindow(dpy, c->title); | ||
| 203 | XLowerWindow(dpy, c->win); | ||
| 204 | } | ||
| 205 | |||
| 206 | void | ||
| 207 | manage(Window w, XWindowAttributes *wa) | 200 | manage(Window w, XWindowAttributes *wa) |
| 208 | { | 201 | { |
| 209 | Client *c; | 202 | Client *c; |
| @@ -96,10 +96,6 @@ Moves current | |||
| 96 | .B window | 96 | .B window |
| 97 | while dragging. | 97 | while dragging. |
| 98 | .TP | 98 | .TP |
| 99 | .B Mod1-Button2 | ||
| 100 | Lowers current | ||
| 101 | .B window. | ||
| 102 | .TP | ||
| 103 | .B Mod1-Button3 | 99 | .B Mod1-Button3 |
| 104 | Resizes current | 100 | Resizes current |
| 105 | .B window | 101 | .B window |
| @@ -91,7 +91,6 @@ extern Client *getctitle(Window w); | |||
| 91 | extern void gravitate(Client *c, Bool invert); | 91 | extern void gravitate(Client *c, Bool invert); |
| 92 | extern void higher(Client *c); | 92 | extern void higher(Client *c); |
| 93 | extern void killclient(Arg *arg); | 93 | extern void killclient(Arg *arg); |
| 94 | extern void lower(Client *c); | ||
| 95 | extern void manage(Window w, XWindowAttributes *wa); | 94 | extern void manage(Window w, XWindowAttributes *wa); |
| 96 | extern void resize(Client *c, Bool sizehints, Corner sticky); | 95 | extern void resize(Client *c, Bool sizehints, Corner sticky); |
| 97 | extern void setsize(Client *c); | 96 | extern void setsize(Client *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))) |
