From: Anselm R Garbe Date: Thu, 19 Jun 2008 08:11:11 +0000 (+0100) Subject: non-zero X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=79ecbeca7e4ca6d614bf233e7bc95d273df6e3b4 non-zero --- diff --git a/config.mk b/config.mk index 6377fc0..bd98b47 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # dwm version -VERSION = 5.0 +VERSION = 5.0.1 # Customize below to fit your system diff --git a/dwm.c b/dwm.c index 8ae4c0e..85292a9 100644 --- a/dwm.c +++ b/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