disallow zoom on maximized clients
This commit is contained in:
parent
c53f0fca91
commit
b79b5facb1
7
client.c
7
client.c
|
@ -196,13 +196,6 @@ killclient(Arg *arg)
|
||||||
XKillClient(dpy, sel->win);
|
XKillClient(dpy, sel->win);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
lower(Client *c)
|
|
||||||
{
|
|
||||||
XLowerWindow(dpy, c->title);
|
|
||||||
XLowerWindow(dpy, c->win);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
manage(Window w, XWindowAttributes *wa)
|
manage(Window w, XWindowAttributes *wa)
|
||||||
{
|
{
|
||||||
|
|
4
dwm.1
4
dwm.1
|
@ -96,10 +96,6 @@ Moves current
|
||||||
.B window
|
.B window
|
||||||
while dragging.
|
while dragging.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1-Button2
|
|
||||||
Lowers current
|
|
||||||
.B window.
|
|
||||||
.TP
|
|
||||||
.B Mod1-Button3
|
.B Mod1-Button3
|
||||||
Resizes current
|
Resizes current
|
||||||
.B window
|
.B window
|
||||||
|
|
1
dwm.h
1
dwm.h
|
@ -91,7 +91,6 @@ extern Client *getctitle(Window w);
|
||||||
extern void gravitate(Client *c, Bool invert);
|
extern void gravitate(Client *c, Bool invert);
|
||||||
extern void higher(Client *c);
|
extern void higher(Client *c);
|
||||||
extern void killclient(Arg *arg);
|
extern void killclient(Arg *arg);
|
||||||
extern void lower(Client *c);
|
|
||||||
extern void manage(Window w, XWindowAttributes *wa);
|
extern void manage(Window w, XWindowAttributes *wa);
|
||||||
extern void resize(Client *c, Bool sizehints, Corner sticky);
|
extern void resize(Client *c, Bool sizehints, Corner sticky);
|
||||||
extern void setsize(Client *c);
|
extern void setsize(Client *c);
|
||||||
|
|
9
event.c
9
event.c
|
@ -127,15 +127,14 @@ buttonpress(XEvent *e)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
case Button1:
|
case Button1:
|
||||||
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
|
if(!c->ismax) {
|
||||||
|
if(arrange == dofloat || c->isfloat) {
|
||||||
higher(c);
|
higher(c);
|
||||||
movemouse(c);
|
movemouse(c);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
zoom(NULL);
|
zoom(NULL);
|
||||||
break;
|
}
|
||||||
case Button2:
|
|
||||||
lower(c);
|
|
||||||
break;
|
break;
|
||||||
case Button3:
|
case Button3:
|
||||||
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
|
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
|
||||||
|
@ -225,7 +224,7 @@ enternotify(XEvent *e)
|
||||||
Client *c;
|
Client *c;
|
||||||
XCrossingEvent *ev = &e->xcrossing;
|
XCrossingEvent *ev = &e->xcrossing;
|
||||||
|
|
||||||
if(ev->detail == NotifyInferior)
|
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
|
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
|
||||||
|
|
Loading…
Reference in New Issue