Introduction
Introduction Statistics Contact Development Disclaimer Help
tsimplification of view() as proposed by anydot - dwm - [fork] customized build…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit c094ed24735b8bac3c6c7773c76e608cdf3f3354
parent bfd6079a155c9429b7b963b678b4a83acab07cd2
Author: Anselm R Garbe <[email protected]>
Date: Sun, 27 Apr 2008 18:36:11 +0100
simplification of view() as proposed by anydot
Diffstat:
M dwm.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -1828,16 +1828,9 @@ updatewmhints(Client *c) {
void
view(const char *arg) {
- Bool tmp[LENGTH(tags)];
- unsigned int i;
-
- for(i = 0; i < LENGTH(tags); i++)
- tmp[i] = (NULL == arg);
- tmp[idxoftag(arg)] = True;
-
- seltags ^= 1; /* toggle sel tagset */
- if(memcmp(tagset[seltags ^ 1], tmp, TAGSZ) != 0)
- memcpy(tagset[seltags], tmp, TAGSZ);
+ seltags ^= 1;
+ memset(tagset[seltags], (NULL == arg), TAGSZ);
+ tagset[seltags][idxoftag(arg)] = True;
arrange();
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.