about summary refs log tree commit diff stats
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
parent10d13f01ff764ba0e875adf5d2b83c49aa08d148 (diff)
downloaddwm-feec92df8449f14836b8681f4e56f2afeea4faf6.tar.gz
fixed _DWM_CONFIG persistation, fixed the client disapperance bug during restarts
-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) {
 	i = arg ? atoi(arg) : 0;
 	if(i >= 0 && i < ntags)
 		sel->tags[i] = True;
-	if(sel)
-		persistconfig(sel);
+	persistconfig(sel);
 	arrange();
 }
 
@@ -154,8 +153,10 @@ togglefloating(const char *arg) {
 	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);
+		persistconfig(sel);
+	}
 	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;
-	if(sel)
-		persistconfig(sel);
+	persistconfig(sel);
 	arrange();
 }
 
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258