wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

focusout.c (456B)


      1 /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "event.h"
      5 
      6 void
      7 event_focusout(XFocusChangeEvent *ev) {
      8 	Window *w;
      9 
     10 	if(!((ev->detail == NotifyNonlinear)
     11 	   ||(ev->detail == NotifyNonlinearVirtual)
     12 	   ||(ev->detail == NotifyVirtual)
     13 	   ||(ev->detail == NotifyInferior)
     14 	   ||(ev->detail == NotifyAncestor)))
     15 		return;
     16 
     17 	if((w = findwin(ev->window)))
     18 		event_handle(w, focusout, ev);
     19 }