Mercurial > dwm-meillo
comparison event.c @ 716:4ce65f61f01b 3.2
renamed activescreen into selscreen
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Tue, 23 Jan 2007 17:12:15 +0100 |
parents | 7034ee0f48d6 |
children | 6283adb1fcf2 |
comparison
equal
deleted
inserted
replaced
715:5b3e4cdb6674 | 716:4ce65f61f01b |
---|---|
228 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) | 228 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
229 return; | 229 return; |
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 } |
237 } | 237 } |
238 | 238 |
267 static void | 267 static void |
268 leavenotify(XEvent *e) { | 268 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 } |
276 | 276 |
277 static void | 277 static void |