event.c
changeset 904 2dfd50e4cfde
parent 897 0a78c9e46e24
child 905 ca352bd2f8f7
equal deleted inserted replaced
903:467c754b607d 904:2dfd50e4cfde
   240 	Client *c;
   240 	Client *c;
   241 	XCrossingEvent *ev = &e->xcrossing;
   241 	XCrossingEvent *ev = &e->xcrossing;
   242 
   242 
   243 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
   243 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
   244 		return;
   244 		return;
   245 	if((c = getclient(ev->window)) && isvisible(c))
   245 	if(c = getclient(ev->window))
   246 		focus(c);
   246 		focus(c);
   247 	else if(ev->window == root) {
   247 	else if(ev->window == root) {
   248 		selscreen = True;
   248 		selscreen = True;
   249 		focustopvisible();
   249 		focus(NULL);
   250 	}
   250 	}
   251 }
   251 }
   252 
   252 
   253 static void
   253 static void
   254 expose(XEvent *e) {
   254 expose(XEvent *e) {