diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-23 17:12:15 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-23 17:12:15 +0100 |
| commit | 87836d79ef90e6c764d94c229183179a36eb699a (patch) | |
| tree | af8cedf98db527f52d59fda1f9accf9653ff7cad | |
| parent | implemented Sanders remarks (diff) | |
| download | dwm-87836d79ef90e6c764d94c229183179a36eb699a.tar.gz dwm-87836d79ef90e6c764d94c229183179a36eb699a.zip | |
renamed activescreen into selscreen
Diffstat (limited to '')
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 4 | ||||
| -rw-r--r-- | main.c | 4 |
4 files changed, 6 insertions, 6 deletions
| @@ -93,7 +93,7 @@ focus(Client *c) { | |||
| 93 | } | 93 | } |
| 94 | sel = c; | 94 | sel = c; |
| 95 | drawstatus(); | 95 | drawstatus(); |
| 96 | if(!activescreen) | 96 | if(!selscreen) |
| 97 | return; | 97 | return; |
| 98 | if(c) { | 98 | if(c) { |
| 99 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); | 99 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); |
| @@ -93,7 +93,7 @@ extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ | |||
| 93 | extern void (*handler[LASTEvent])(XEvent *); /* event handler */ | 93 | extern void (*handler[LASTEvent])(XEvent *); /* event handler */ |
| 94 | extern void (*arrange)(void); /* arrange function, indicates mode */ | 94 | extern void (*arrange)(void); /* arrange function, indicates mode */ |
| 95 | extern Atom wmatom[WMLast], netatom[NetLast]; | 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 | extern Client *clients, *sel, *stack; /* global client list and stack */ | 97 | extern Client *clients, *sel, *stack; /* global client list and stack */ |
| 98 | extern Cursor cursor[CurLast]; | 98 | extern Cursor cursor[CurLast]; |
| 99 | extern DC dc; /* global draw context */ | 99 | extern DC dc; /* global draw context */ |
| @@ -230,7 +230,7 @@ enternotify(XEvent *e) { | |||
| 230 | if((c = getclient(ev->window)) && isvisible(c)) | 230 | if((c = getclient(ev->window)) && isvisible(c)) |
| 231 | focus(c); | 231 | focus(c); |
| 232 | else if(ev->window == root) { | 232 | else if(ev->window == root) { |
| 233 | activescreen = True; | 233 | selscreen = True; |
| 234 | for(c = stack; c && !isvisible(c); c = c->snext); | 234 | for(c = stack; c && !isvisible(c); c = c->snext); |
| 235 | focus(c); | 235 | focus(c); |
| 236 | } | 236 | } |
| @@ -269,7 +269,7 @@ leavenotify(XEvent *e) { | |||
| 269 | XCrossingEvent *ev = &e->xcrossing; | 269 | XCrossingEvent *ev = &e->xcrossing; |
| 270 | 270 | ||
| 271 | if((ev->window == root) && !ev->same_screen) { | 271 | if((ev->window == root) && !ev->same_screen) { |
| 272 | activescreen = False; | 272 | selscreen = False; |
| 273 | focus(NULL); | 273 | focus(NULL); |
| 274 | } | 274 | } |
| 275 | } | 275 | } |
| @@ -23,7 +23,7 @@ int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; | |||
| 23 | unsigned int master, nmaster, ntags, numlockmask; | 23 | unsigned int master, nmaster, ntags, numlockmask; |
| 24 | Atom wmatom[WMLast], netatom[NetLast]; | 24 | Atom wmatom[WMLast], netatom[NetLast]; |
| 25 | Bool running = True; | 25 | Bool running = True; |
| 26 | Bool activescreen = True; | 26 | Bool selscreen = True; |
| 27 | Client *clients = NULL; | 27 | Client *clients = NULL; |
| 28 | Client *sel = NULL; | 28 | Client *sel = NULL; |
| 29 | Client *stack = NULL; | 29 | Client *stack = NULL; |
| @@ -156,7 +156,7 @@ setup(void) { | |||
| 156 | dc.gc = XCreateGC(dpy, root, 0, 0); | 156 | dc.gc = XCreateGC(dpy, root, 0, 0); |
| 157 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | 157 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); |
| 158 | /* multihead support */ | 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 | /* |
