Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
cleaned up settags-handling
[dwm.git]
/
main.c
diff --git
a/main.c
b/main.c
index
6d84a77
..
0ae288c
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-21,7
+21,7
@@
unsigned int bh, ntags;
unsigned int bpos = BARPOS;
unsigned int numlockmask = 0;
Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
unsigned int bpos = BARPOS;
unsigned int numlockmask = 0;
Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
-Bool *seltag;
+Bool *seltag
s
;
Bool selscreen = True;
Client *clients = NULL;
Client *sel = NULL;
Bool selscreen = True;
Client *clients = NULL;
Client *sel = NULL;
@@
-57,7
+57,7
@@
cleanup(void) {
XFreeCursor(dpy, cursor[CurMove]);
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
XFreeCursor(dpy, cursor[CurMove]);
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
- free(seltag);
+ free(seltag
s
);
}
static unsigned long
}
static unsigned long
@@
-170,8
+170,8
@@
setup(void) {
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);
- seltag = emallocz(sizeof(Bool) * ntags);
- seltag[0] = True;
+ seltag
s
= emallocz(sizeof(Bool) * ntags);
+ seltag
s
[0] = True;
/* style */
dc.norm[ColBorder] = initcolor(NORMBORDERCOLOR);
dc.norm[ColBG] = initcolor(NORMBGCOLOR);
/* style */
dc.norm[ColBorder] = initcolor(NORMBORDERCOLOR);
dc.norm[ColBG] = initcolor(NORMBGCOLOR);