Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
changed things like I described in last mail
[dwm.git]
/
view.c
diff --git
a/view.c
b/view.c
index
5c65148
..
14cfc1d
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-99,7
+99,7
@@
dotile(void) {
c->x += mpx;
c->w = stackw - 2 * BORDERPX;
if(th > bh) {
c->x += mpx;
c->w = stackw - 2 * BORDERPX;
if(th > bh) {
- c->y
= way +
(i - 1) * th;
+ c->y
+=
(i - 1) * th;
c->h = th - 2 * BORDERPX;
}
else /* fallback if th < bh */
c->h = th - 2 * BORDERPX;
}
else /* fallback if th < bh */
@@
-202,7
+202,7
@@
restack(void) {
void
togglefloat(Arg *arg) {
void
togglefloat(Arg *arg) {
- if (!sel)
+ if (!sel
|| arrange == dofloat
)
return;
sel->isfloat = !sel->isfloat;
arrange();
return;
sel->isfloat = !sel->isfloat;
arrange();
@@
-233,20
+233,11
@@
view(Arg *arg) {
unsigned int i;
for(i = 0; i < ntags; i++)
unsigned int i;
for(i = 0; i < ntags; i++)
- seltag[i] = False;
+ seltag[i] =
(arg->i == -1) ? True :
False;
seltag[arg->i] = True;
arrange();
}
seltag[arg->i] = True;
arrange();
}
-void
-viewall(Arg *arg) {
- unsigned int i;
-
- for(i = 0; i < ntags; i++)
- seltag[i] = True;
- arrange();
-}
-
void
zoom(Arg *arg) {
unsigned int n;
void
zoom(Arg *arg) {
unsigned int n;