Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
e9a0733
)
initialize prevtags in setup, now users can setup which seltags should be selectedin...
author
Anselm R. Garbe <
[email protected]
>
Sat, 10 Nov 2007 18:31:01 +0000
(19:31 +0100)
committer
Anselm R. Garbe <
[email protected]
>
Sat, 10 Nov 2007 18:31:01 +0000
(19:31 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
bd7ffe3
..
8da3b6f
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-233,7
+233,7
@@
Regs *regs = NULL;
/* configuration, allows nested code to access above variables */
#include "config.h"
/* configuration, allows nested code to access above variables */
#include "config.h"
-Bool prevtags[LENGTH(tags)]
= {[0] = True}
;
+Bool prevtags[LENGTH(tags)];
/* function implementations */
void
/* function implementations */
void
@@
-1467,6
+1467,7
@@
setup(void) {
grabkeys();
/* init tags */
grabkeys();
/* init tags */
+ memcpy(prevtags, seltags, sizeof seltags);
compileregs();
/* init appearance */
compileregs();
/* init appearance */
@@
-1849,11
+1850,11
@@
view(const char *arg) {
void
viewprevtag(const char *arg) {
void
viewprevtag(const char *arg) {
- static Bool tmp
tags[sizeof tags / sizeof tags[0]
];
+ static Bool tmp
[LENGTH(tags)
];
- memcpy(tmp
tags
, seltags, sizeof seltags);
+ memcpy(tmp, seltags, sizeof seltags);
memcpy(seltags, prevtags, sizeof seltags);
memcpy(seltags, prevtags, sizeof seltags);
- memcpy(prevtags, tmp
tags
, sizeof seltags);
+ memcpy(prevtags, tmp, sizeof seltags);
arrange();
}
arrange();
}