   	}
   	if(c) {
   		focus(c);
---- 793,867 ----
+--- 806,880 ----
   void
   expose(XEvent *e) {
   	Monitor *m;

  		XSetErrorHandler(xerror);
  		XUngrabServer(dpy);
  	}
--- 1659,1706 ----
  
  	if(!selmon->sel)
  		return;

  		focus(NULL);
  	}
  }
--- 1375,1400 ----
  			handler[ev.type](&ev);
  			break;
  		case MotionNotify:
