X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/9bb0f20515023aa5471c628d01a6e65e93040dc1..45768ee04bfab45a5dfd21105419806422ca8954:/dwm.c diff --git a/dwm.c b/dwm.c index e135715..1554a16 100644 --- a/dwm.c +++ b/dwm.c @@ -1642,6 +1642,8 @@ updatewmhints(Client *c) { void view(const Arg *arg) { + if(arg && (arg->i & TAGMASK) == tagset[seltags]) + return; seltags ^= 1; /* toggle sel tagset */ if(arg && (arg->ui & TAGMASK)) tagset[seltags] = arg->i & TAGMASK;