aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-23 17:12:15 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-23 17:12:15 +0100
commit87836d79ef90e6c764d94c229183179a36eb699a (patch)
treeaf8cedf98db527f52d59fda1f9accf9653ff7cad
parentc8a12a0852a9befbf5a073910e8b0291914f80ab (diff)
downloaddwm-87836d79ef90e6c764d94c229183179a36eb699a.tar.gz
dwm-87836d79ef90e6c764d94c229183179a36eb699a.tar.bz2
dwm-87836d79ef90e6c764d94c229183179a36eb699a.zip
renamed activescreen into selscreen
-rw-r--r--client.c2
-rw-r--r--dwm.h2
-rw-r--r--event.c4
-rw-r--r--main.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/client.c b/client.c
index 7ccad39..b89264c 100644
--- a/client.c
+++ b/client.c
@@ -93,7 +93,7 @@ focus(Client *c) {
}
sel = c;
drawstatus();
- if(!activescreen)
+ if(!selscreen)
return;
if(c) {
XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
diff --git a/dwm.h b/dwm.h
index 72fcacf..e5c623d 100644
--- a/dwm.h
+++ b/dwm.h
@@ -93,7 +93,7 @@ extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */
extern void (*handler[LASTEvent])(XEvent *); /* event handler */
extern void (*arrange)(void); /* arrange function, indicates mode */
extern Atom wmatom[WMLast], netatom[NetLast];
-extern Bool activescreen, running, *seltag; /* seltag is array of Bool */
+extern Bool running, selscreen, *seltag; /* seltag is array of Bool */
extern Client *clients, *sel, *stack; /* global client list and stack */
extern Cursor cursor[CurLast];
extern DC dc; /* global draw context */
diff --git a/event.c b/event.c
index 4f07789..418e986 100644
--- a/event.c
+++ b/event.c
@@ -230,7 +230,7 @@ enternotify(XEvent *e) {
if((c = getclient(ev->window)) && isvisible(c))
focus(c);
else if(ev->window == root) {
- activescreen = True;
+ selscreen = True;
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
}
@@ -269,7 +269,7 @@ leavenotify(XEvent *e) {
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
- activescreen = False;
+ selscreen = False;
focus(NULL);
}
}
diff --git a/main.c b/main.c
index 20c2890..9cffafe 100644
--- a/main.c
+++ b/main.c
@@ -23,7 +23,7 @@ int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah;
unsigned int master, nmaster, ntags, numlockmask;
Atom wmatom[WMLast], netatom[NetLast];
Bool running = True;
-Bool activescreen = True;
+Bool selscreen = True;
Client *clients = NULL;
Client *sel = NULL;
Client *stack = NULL;
@@ -156,7 +156,7 @@ setup(void) {
dc.gc = XCreateGC(dpy, root, 0, 0);
XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
/* multihead support */
- activescreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
+ selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
}
/*