Mercurial > dwm-meillo
comparison event.c @ 714:7034ee0f48d6
small changes
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Tue, 23 Jan 2007 12:29:17 +0100 |
parents | b40134b93de3 |
children | 4ce65f61f01b |
comparison
equal
deleted
inserted
replaced
713:ef2c267884f3 | 714:7034ee0f48d6 |
---|---|
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 issel = True; | 233 activescreen = 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 issel = False; | 272 activescreen = False; |
273 focus(NULL); | 273 focus(NULL); |
274 } | 274 } |
275 } | 275 } |
276 | 276 |
277 static void | 277 static void |