event.c
changeset 706 163fdca8f064
parent 705 1e571a8c7552
child 707 c3c57faef013
equal deleted inserted replaced
705:1e571a8c7552 706:163fdca8f064
   271 static void
   271 static void
   272 leavenotify(XEvent *e) {
   272 leavenotify(XEvent *e) {
   273 	XCrossingEvent *ev = &e->xcrossing;
   273 	XCrossingEvent *ev = &e->xcrossing;
   274 
   274 
   275 	if((ev->window == root) && !ev->same_screen) {
   275 	if((ev->window == root) && !ev->same_screen) {
       
   276 		if(sel)
       
   277 			focus(NULL);
   276 		issel = False;
   278 		issel = False;
   277 		if(sel)
       
   278 			XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
       
   279 	}
   279 	}
   280 }
   280 }
   281 
   281 
   282 static void
   282 static void
   283 mappingnotify(XEvent *e) {
   283 mappingnotify(XEvent *e) {