Anselm R Garbe 17 anos atrás
pai
commit
79ecbeca7e
2 arquivos alterados com 11 adições e 3 exclusões
  1. 1 1
      config.mk
  2. 10 2
      dwm.c

+ 1 - 1
config.mk

@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.0
+VERSION = 5.0.1
 
 # Customize below to fit your system
 

+ 10 - 2
dwm.c

@@ -1496,14 +1496,22 @@ togglemax(const Arg *arg) {
 
 void
 toggletag(const Arg *arg) {
-	if(sel && (sel->tags ^= (arg->ui & TAGMASK)))
+	uint mask = sel->tags ^ (arg->ui & TAGMASK);
+
+	if(sel && mask) {
+		sel->tags = mask;
 		arrange();
+	}
 }
 
 void
 toggleview(const Arg *arg) {
-	if((tagset[seltags] ^= (arg->ui & TAGMASK)))
+	uint mask = tagset[seltags] ^ (arg->ui & TAGMASK);
+
+	if(mask) {
+		tagset[seltags] = mask;
 		arrange();
+	}
 }
 
 void