# HG changeset patch # User Anselm R Garbe # Date 1213863071 -3600 # Node ID 2b839f9998c8c630396f4889e90c9a33c34e2331 # Parent b8329bfe5046089dafba26e865dbf93b510945c9 non-zero diff -r b8329bfe5046 -r 2b839f9998c8 config.mk --- a/config.mk Wed Jun 18 18:22:54 2008 +0100 +++ b/config.mk Thu Jun 19 09:11:11 2008 +0100 @@ -1,5 +1,5 @@ # dwm version -VERSION = 5.0 +VERSION = 5.0.1 # Customize below to fit your system diff -r b8329bfe5046 -r 2b839f9998c8 dwm.c --- a/dwm.c Wed Jun 18 18:22:54 2008 +0100 +++ b/dwm.c Thu Jun 19 09:11:11 2008 +0100 @@ -1496,14 +1496,22 @@ 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