summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-15 19:31:41 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-15 19:31:41 +0200
commitfeec92df8449f14836b8681f4e56f2afeea4faf6 (patch)
tree36f50fdc15420fcdc51c35941b333fddcb6dca5a
parentfififi (diff)
downloaddwm-feec92df8449f14836b8681f4e56f2afeea4faf6.tar.gz
dwm-feec92df8449f14836b8681f4e56f2afeea4faf6.zip
fixed _DWM_CONFIG persistation, fixed the client disapperance bug during restarts
Diffstat (limited to '')
-rw-r--r--tag.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tag.c b/tag.c
index cb1a2c4..4aeadc2 100644
--- a/tag.c
+++ b/tag.c
@@ -144,8 +144,7 @@ tag(const char *arg) {
144 i = arg ? atoi(arg) : 0; 144 i = arg ? atoi(arg) : 0;
145 if(i >= 0 && i < ntags) 145 if(i >= 0 && i < ntags)
146 sel->tags[i] = True; 146 sel->tags[i] = True;
147 if(sel) 147 persistconfig(sel);
148 persistconfig(sel);
149 arrange(); 148 arrange();
150} 149}
151 150
@@ -154,8 +153,10 @@ togglefloating(const char *arg) {
154 if(!sel || isfloating()) 153 if(!sel || isfloating())
155 return; 154 return;
156 sel->isfloating = !sel->isfloating; 155 sel->isfloating = !sel->isfloating;
157 if(sel->isfloating) 156 if(sel->isfloating) {
158 resize(sel, sel->x, sel->y, sel->w, sel->h, True); 157 resize(sel, sel->x, sel->y, sel->w, sel->h, True);
158 persistconfig(sel);
159 }
159 arrange(); 160 arrange();
160} 161}
161 162
@@ -170,8 +171,7 @@ toggletag(const char *arg) {
170 for(j = 0; j < ntags && !sel->tags[j]; j++); 171 for(j = 0; j < ntags && !sel->tags[j]; j++);
171 if(j == ntags) 172 if(j == ntags)
172 sel->tags[i] = True; 173 sel->tags[i] = True;
173 if(sel) 174 persistconfig(sel);
174 persistconfig(sel);
175 arrange(); 175 arrange();
176} 176}
177 177