--- a/client.c Tue Jan 23 13:10:35 2007 +0100
+++ b/client.c Tue Jan 23 17:12:15 2007 +0100
@@ -93,7 +93,7 @@
}
sel = c;
drawstatus();
- if(!activescreen)
+ if(!selscreen)
return;
if(c) {
XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
--- a/dwm.h Tue Jan 23 13:10:35 2007 +0100
+++ b/dwm.h Tue Jan 23 17:12:15 2007 +0100
@@ -93,7 +93,7 @@
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 */
--- a/event.c Tue Jan 23 13:10:35 2007 +0100
+++ b/event.c Tue Jan 23 17:12:15 2007 +0100
@@ -230,7 +230,7 @@
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 @@
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
- activescreen = False;
+ selscreen = False;
focus(NULL);
}
}
--- a/main.c Tue Jan 23 13:10:35 2007 +0100
+++ b/main.c Tue Jan 23 17:12:15 2007 +0100
@@ -23,7 +23,7 @@
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 @@
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);
}
/*