renamed domax into ismax
This commit is contained in:
parent
9189f7a12d
commit
6c8618f502
16
dwm.c
16
dwm.c
|
@ -212,7 +212,7 @@ void (*handler[LASTEvent]) (XEvent *) = {
|
||||||
[UnmapNotify] = unmapnotify
|
[UnmapNotify] = unmapnotify
|
||||||
};
|
};
|
||||||
Atom wmatom[WMLast], netatom[NetLast];
|
Atom wmatom[WMLast], netatom[NetLast];
|
||||||
Bool domax = False;
|
Bool ismax = False;
|
||||||
Bool otherwm, readin;
|
Bool otherwm, readin;
|
||||||
Bool running = True;
|
Bool running = True;
|
||||||
uint tagset[] = {1, 1}; /* after start, first tag is selected */
|
uint tagset[] = {1, 1}; /* after start, first tag is selected */
|
||||||
|
@ -273,7 +273,7 @@ arrange(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
if(lt->arrange && !domax)
|
if(lt->arrange && !ismax)
|
||||||
lt->arrange();
|
lt->arrange();
|
||||||
restack();
|
restack();
|
||||||
}
|
}
|
||||||
|
@ -328,7 +328,7 @@ buttonpress(XEvent *e) {
|
||||||
}
|
}
|
||||||
else if((c = getclient(ev->window))) {
|
else if((c = getclient(ev->window))) {
|
||||||
focus(c);
|
focus(c);
|
||||||
if(CLEANMASK(ev->state) != MODKEY || domax)
|
if(CLEANMASK(ev->state) != MODKEY || ismax)
|
||||||
return;
|
return;
|
||||||
if(ev->button == Button1)
|
if(ev->button == Button1)
|
||||||
movemouse(c);
|
movemouse(c);
|
||||||
|
@ -500,7 +500,7 @@ drawbar(void) {
|
||||||
}
|
}
|
||||||
if(blw > 0) {
|
if(blw > 0) {
|
||||||
dc.w = blw;
|
dc.w = blw;
|
||||||
drawtext(lt->symbol, dc.norm, domax);
|
drawtext(lt->symbol, dc.norm, ismax);
|
||||||
x = dc.x + dc.w;
|
x = dc.x + dc.w;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -629,7 +629,7 @@ focus(Client *c) {
|
||||||
}
|
}
|
||||||
sel = c;
|
sel = c;
|
||||||
if(c) {
|
if(c) {
|
||||||
if(domax) {
|
if(ismax) {
|
||||||
XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
|
XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
|
||||||
c->ismax = True;
|
c->ismax = True;
|
||||||
}
|
}
|
||||||
|
@ -1194,9 +1194,9 @@ restack(void) {
|
||||||
drawbar();
|
drawbar();
|
||||||
if(!sel)
|
if(!sel)
|
||||||
return;
|
return;
|
||||||
if(domax || sel->isfloating || !lt->arrange)
|
if(ismax || sel->isfloating || !lt->arrange)
|
||||||
XRaiseWindow(dpy, sel->win);
|
XRaiseWindow(dpy, sel->win);
|
||||||
if(!domax && lt->arrange) {
|
if(!ismax && lt->arrange) {
|
||||||
wc.stack_mode = Below;
|
wc.stack_mode = Below;
|
||||||
wc.sibling = barwin;
|
wc.sibling = barwin;
|
||||||
for(c = stack; c; c = c->snext)
|
for(c = stack; c; c = c->snext)
|
||||||
|
@ -1512,7 +1512,7 @@ togglelayout(const void *arg) {
|
||||||
|
|
||||||
void
|
void
|
||||||
togglemax(const void *arg) {
|
togglemax(const void *arg) {
|
||||||
domax = !domax;
|
ismax = !ismax;
|
||||||
arrange();
|
arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue