Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
9189f7a
)
renamed domax into ismax
author
Anselm R Garbe <
[email protected]
>
Mon, 26 May 2008 09:13:51 +0000
(10:13 +0100)
committer
Anselm R Garbe <
[email protected]
>
Mon, 26 May 2008 09:13:51 +0000
(10:13 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
2fe70e4
..
3147be2
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-212,7
+212,7
@@
void (*handler[LASTEvent]) (XEvent *) = {
[UnmapNotify] = unmapnotify
};
Atom wmatom[WMLast], netatom[NetLast];
[UnmapNotify] = unmapnotify
};
Atom wmatom[WMLast], netatom[NetLast];
-Bool
do
max = False;
+Bool
is
max = False;
Bool otherwm, readin;
Bool running = True;
uint tagset[] = {1, 1}; /* after start, first tag is selected */
Bool otherwm, readin;
Bool running = True;
uint tagset[] = {1, 1}; /* after start, first tag is selected */
@@
-273,7
+273,7
@@
arrange(void) {
}
focus(NULL);
}
focus(NULL);
- if(lt->arrange && !
do
max)
+ if(lt->arrange && !
is
max)
lt->arrange();
restack();
}
lt->arrange();
restack();
}
@@
-328,7
+328,7
@@
buttonpress(XEvent *e) {
}
else if((c = getclient(ev->window))) {
focus(c);
}
else if((c = getclient(ev->window))) {
focus(c);
- if(CLEANMASK(ev->state) != MODKEY ||
do
max)
+ if(CLEANMASK(ev->state) != MODKEY ||
is
max)
return;
if(ev->button == Button1)
movemouse(c);
return;
if(ev->button == Button1)
movemouse(c);
@@
-500,7
+500,7
@@
drawbar(void) {
}
if(blw > 0) {
dc.w = blw;
}
if(blw > 0) {
dc.w = blw;
- drawtext(lt->symbol, dc.norm,
do
max);
+ drawtext(lt->symbol, dc.norm,
is
max);
x = dc.x + dc.w;
}
else
x = dc.x + dc.w;
}
else
@@
-629,7
+629,7
@@
focus(Client *c) {
}
sel = c;
if(c) {
}
sel = c;
if(c) {
- if(
do
max) {
+ if(
is
max) {
XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
c->ismax = True;
}
XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
c->ismax = True;
}
@@
-1194,9
+1194,9
@@
restack(void) {
drawbar();
if(!sel)
return;
drawbar();
if(!sel)
return;
- if(
do
max || sel->isfloating || !lt->arrange)
+ if(
is
max || sel->isfloating || !lt->arrange)
XRaiseWindow(dpy, sel->win);
XRaiseWindow(dpy, sel->win);
- if(!
do
max && lt->arrange) {
+ if(!
is
max && lt->arrange) {
wc.stack_mode = Below;
wc.sibling = barwin;
for(c = stack; c; c = c->snext)
wc.stack_mode = Below;
wc.sibling = barwin;
for(c = stack; c; c = c->snext)
@@
-1512,7
+1512,7
@@
togglelayout(const void *arg) {
void
togglemax(const void *arg) {
void
togglemax(const void *arg) {
-
domax = !do
max;
+
ismax = !is
max;
arrange();
}
arrange();
}