renamed activescreen into selscreen
87836d79
4 file(s) · +6 −6
| 93 | 93 | } |
|
| 94 | 94 | sel = c; |
|
| 95 | 95 | drawstatus(); |
|
| 96 | - | if(!activescreen) |
|
| 96 | + | if(!selscreen) |
|
| 97 | 97 | return; |
|
| 98 | 98 | if(c) { |
|
| 99 | 99 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); |
| 93 | 93 | extern void (*handler[LASTEvent])(XEvent *); /* event handler */ |
|
| 94 | 94 | extern void (*arrange)(void); /* arrange function, indicates mode */ |
|
| 95 | 95 | extern Atom wmatom[WMLast], netatom[NetLast]; |
|
| 96 | - | extern Bool activescreen, running, *seltag; /* seltag is array of Bool */ |
|
| 96 | + | extern Bool running, selscreen, *seltag; /* seltag is array of Bool */ |
|
| 97 | 97 | extern Client *clients, *sel, *stack; /* global client list and stack */ |
|
| 98 | 98 | extern Cursor cursor[CurLast]; |
|
| 99 | 99 | extern DC dc; /* global draw context */ |
| 230 | 230 | if((c = getclient(ev->window)) && isvisible(c)) |
|
| 231 | 231 | focus(c); |
|
| 232 | 232 | else if(ev->window == root) { |
|
| 233 | - | activescreen = True; |
|
| 233 | + | selscreen = True; |
|
| 234 | 234 | for(c = stack; c && !isvisible(c); c = c->snext); |
|
| 235 | 235 | focus(c); |
|
| 236 | 236 | } |
|
| 269 | 269 | XCrossingEvent *ev = &e->xcrossing; |
|
| 270 | 270 | ||
| 271 | 271 | if((ev->window == root) && !ev->same_screen) { |
|
| 272 | - | activescreen = False; |
|
| 272 | + | selscreen = False; |
|
| 273 | 273 | focus(NULL); |
|
| 274 | 274 | } |
|
| 275 | 275 | } |
|
| 23 | 23 | unsigned int master, nmaster, ntags, numlockmask; |
|
| 24 | 24 | Atom wmatom[WMLast], netatom[NetLast]; |
|
| 25 | 25 | Bool running = True; |
|
| 26 | - | Bool activescreen = True; |
|
| 26 | + | Bool selscreen = True; |
|
| 27 | 27 | Client *clients = NULL; |
|
| 28 | 28 | Client *sel = NULL; |
|
| 29 | 29 | Client *stack = NULL; |
|
| 156 | 156 | dc.gc = XCreateGC(dpy, root, 0, 0); |
|
| 157 | 157 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); |
|
| 158 | 158 | /* multihead support */ |
|
| 159 | - | activescreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); |
|
| 159 | + | selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); |
|
| 160 | 160 | } |
|
| 161 | 161 | ||
| 162 | 162 | /* |
|