Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
10d13f0
)
fixed _DWM_CONFIG persistation, fixed the client disapperance bug during restarts
author
Anselm R. Garbe <
[email protected]
>
Wed, 15 Aug 2007 17:31:41 +0000
(19:31 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Wed, 15 Aug 2007 17:31:41 +0000
(19:31 +0200)
tag.c
patch
|
blob
|
history
diff --git
a/tag.c
b/tag.c
index
cb1a2c4
..
4aeadc2
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-144,8
+144,7
@@
tag(const char *arg) {
i = arg ? atoi(arg) : 0;
if(i >= 0 && i < ntags)
sel->tags[i] = True;
i = arg ? atoi(arg) : 0;
if(i >= 0 && i < ntags)
sel->tags[i] = True;
- if(sel)
- persistconfig(sel);
+ persistconfig(sel);
arrange();
}
arrange();
}
@@
-154,8
+153,10
@@
togglefloating(const char *arg) {
if(!sel || isfloating())
return;
sel->isfloating = !sel->isfloating;
if(!sel || isfloating())
return;
sel->isfloating = !sel->isfloating;
- if(sel->isfloating)
+ if(sel->isfloating)
{
resize(sel, sel->x, sel->y, sel->w, sel->h, True);
resize(sel, sel->x, sel->y, sel->w, sel->h, True);
+ persistconfig(sel);
+ }
arrange();
}
arrange();
}
@@
-170,8
+171,7
@@
toggletag(const char *arg) {
for(j = 0; j < ntags && !sel->tags[j]; j++);
if(j == ntags)
sel->tags[i] = True;
for(j = 0; j < ntags && !sel->tags[j]; j++);
if(j == ntags)
sel->tags[i] = True;
- if(sel)
- persistconfig(sel);
+ persistconfig(sel);
arrange();
}
arrange();
}