event.c
changeset 709 6c2fcf88dd9f
parent 708 a2d568a5cdb8
child 711 b40134b93de3
equal deleted inserted replaced
708:a2d568a5cdb8 709:6c2fcf88dd9f
   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 		focus(NULL);
       
   273 		issel = False;
   272 		issel = False;
       
   273 		focus(sel);
   274 	}
   274 	}
   275 }
   275 }
   276 
   276 
   277 static void
   277 static void
   278 mappingnotify(XEvent *e) {
   278 mappingnotify(XEvent *e) {