Introduction
Introduction Statistics Contact Development Disclaimer Help
trenamed seltag into seltags - dwm - [fork] customized build of dwm, the dynami…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 86953bd68249662b5d7a9ae6741744ab8bf30aa1
parent a923298d3577dca0e69fd70edbef56c7822258e3
Author: Anselm R. Garbe <[email protected]>
Date: Fri, 17 Aug 2007 21:12:55 +0200
renamed seltag into seltags
Diffstat:
M draw.c | 2 +-
M dwm.h | 2 +-
M main.c | 8 ++++----
M tag.c | 14 +++++++-------
4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/draw.c b/draw.c
t@@ -55,7 +55,7 @@ drawstatus(void) {
dc.x = dc.y = 0;
for(i = 0; i < ntags; i++) {
dc.w = textw(tags[i]);
- if(seltag[i]) {
+ if(seltags[i]) {
drawtext(tags[i], dc.sel);
drawsquare(sel && sel->tags[i], isoccupied(i), dc.sel);
}
diff --git a/dwm.h b/dwm.h
t@@ -82,7 +82,7 @@ extern unsigned int bh, blw, bpos; /* bar hei…
extern unsigned int ntags, numlockmask; /* number of tags, numl…
extern void (*handler[LASTEvent])(XEvent *); /* event handler */
extern Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
-extern Bool selscreen, *seltag; /* seltag is array of B…
+extern Bool selscreen, *seltags; /* seltags is array of Bool */
extern Client *clients, *sel, *stack; /* global client list and…
extern Cursor cursor[CurLast];
extern DC dc; /* global draw context */
diff --git a/main.c b/main.c
t@@ -21,7 +21,7 @@ unsigned int bh, ntags;
unsigned int bpos = BARPOS;
unsigned int numlockmask = 0;
Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
-Bool *seltag;
+Bool *seltags;
Bool selscreen = True;
Client *clients = NULL;
Client *sel = NULL;
t@@ -57,7 +57,7 @@ cleanup(void) {
XFreeCursor(dpy, cursor[CurMove]);
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
- free(seltag);
+ free(seltags);
}
static unsigned long
t@@ -170,8 +170,8 @@ setup(void) {
grabkeys();
compileregs();
for(ntags = 0; tags[ntags]; ntags++);
- seltag = emallocz(sizeof(Bool) * ntags);
- seltag[0] = True;
+ seltags = emallocz(sizeof(Bool) * ntags);
+ seltags[0] = True;
/* style */
dc.norm[ColBorder] = initcolor(NORMBORDERCOLOR);
dc.norm[ColBG] = initcolor(NORMBGCOLOR);
diff --git a/tag.c b/tag.c
t@@ -84,7 +84,7 @@ isvisible(Client *c) {
unsigned int i;
for(i = 0; i < ntags; i++)
- if(c->tags[i] && seltag[i])
+ if(c->tags[i] && seltags[i])
return True;
return False;
}
t@@ -139,7 +139,7 @@ settags(Client *c, Client *trans) {
}
if(!matched)
for(i = 0; i < ntags; i++)
- c->tags[i] = seltag[i];
+ c->tags[i] = seltags[i];
persistconfig(c);
}
t@@ -190,10 +190,10 @@ toggleview(const char *arg) {
unsigned int i, j;
i = idxoftag(arg);
- seltag[i] = !seltag[i];
- for(j = 0; j < ntags && !seltag[j]; j++);
+ seltags[i] = !seltags[i];
+ for(j = 0; j < ntags && !seltags[j]; j++);
if(j == ntags)
- seltag[i] = True; /* cannot toggle last view */
+ seltags[i] = True; /* cannot toggle last view */
arrange();
}
t@@ -202,9 +202,9 @@ view(const char *arg) {
unsigned int i;
for(i = 0; i < ntags; i++)
- seltag[i] = arg == NULL;
+ seltags[i] = arg == NULL;
i = idxoftag(arg);
if(i >= 0 && i < ntags)
- seltag[i] = True;
+ seltags[i] = 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.