Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
drawing border with fg color
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
2e4f62e
..
0f984f2
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-127,14
+127,15
@@
buttonpress(XEvent *e)
default:
break;
case Button1:
default:
break;
case Button1:
- if(!c->ismax && (arrange == dofloat || c->isfloat)) {
- higher(c);
- movemouse(c);
+ if(!c->ismax) {
+ if(arrange == dofloat || c->isfloat) {
+ higher(c);
+ movemouse(c);
+ }
+ else
+ zoom(NULL);
}
break;
}
break;
- case Button2:
- lower(c);
- break;
case Button3:
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
higher(c);
case Button3:
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
higher(c);
@@
-223,7
+224,7
@@
enternotify(XEvent *e)
Client *c;
XCrossingEvent *ev = &e->xcrossing;
Client *c;
XCrossingEvent *ev = &e->xcrossing;
- if(ev->detail == NotifyInferior)
+ if(ev->
mode != NotifyNormal || ev->
detail == NotifyInferior)
return;
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
return;
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))