summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c7
-rw-r--r--dwm.14
-rw-r--r--dwm.h1
-rw-r--r--event.c17
4 files changed, 8 insertions, 21 deletions
diff --git a/client.c b/client.c
index f92df83..f268623 100644
--- a/client.c
+++ b/client.c
@@ -197,13 +197,6 @@ killclient(Arg *arg)
197} 197}
198 198
199void 199void
200lower(Client *c)
201{
202 XLowerWindow(dpy, c->title);
203 XLowerWindow(dpy, c->win);
204}
205
206void
207manage(Window w, XWindowAttributes *wa) 200manage(Window w, XWindowAttributes *wa)
208{ 201{
209 Client *c; 202 Client *c;
diff --git a/dwm.1 b/dwm.1
index 5b0be22..a411978 100644
--- a/dwm.1
+++ b/dwm.1
@@ -96,10 +96,6 @@ Moves current
96.B window 96.B window
97while dragging. 97while dragging.
98.TP 98.TP
99.B Mod1-Button2
100Lowers current
101.B window.
102.TP
103.B Mod1-Button3 99.B Mod1-Button3
104Resizes current 100Resizes current
105.B window 101.B window
diff --git a/dwm.h b/dwm.h
index 57d628a..88640b8 100644
--- a/dwm.h
+++ b/dwm.h
@@ -91,7 +91,6 @@ extern Client *getctitle(Window w);
91extern void gravitate(Client *c, Bool invert); 91extern void gravitate(Client *c, Bool invert);
92extern void higher(Client *c); 92extern void higher(Client *c);
93extern void killclient(Arg *arg); 93extern void killclient(Arg *arg);
94extern void lower(Client *c);
95extern void manage(Window w, XWindowAttributes *wa); 94extern void manage(Window w, XWindowAttributes *wa);
96extern void resize(Client *c, Bool sizehints, Corner sticky); 95extern void resize(Client *c, Bool sizehints, Corner sticky);
97extern void setsize(Client *c); 96extern void setsize(Client *c);
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)))