X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e48de30516d5a0400b27a0d6bfeb1b9181e8ebf5..4b0328f2097dedd70bbb36ea2b5159ac55b7cbcb:/event.c?ds=sidebyside diff --git a/event.c b/event.c index 2e4f62e..0f984f2 100644 --- a/event.c +++ b/event.c @@ -127,14 +127,15 @@ buttonpress(XEvent *e) 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; - case Button2: - lower(c); - break; case Button3: if(!c->ismax && (arrange == dofloat || c->isfloat)) { higher(c); @@ -223,7 +224,7 @@ enternotify(XEvent *e) 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)))