Description: Focus change notification fix
Origin: http://rus.akshaal.info/2005/11/blog-post.html

--- xkbind-2010.05.20.orig/xkbind.c	2010-05-30 20:25:16.000000000 +0400
+++ xkbind-2010.05.20/xkbind.c	2010-05-30 21:34:02.000000000 +0400
@@ -242,7 +242,9 @@
 				}
 				fprintf(stderr, "window: %d\n\n", ev.core.xfocus.window);
 #endif
-				if(ev.core.xfocus.detail == NotifyNonlinear &&
+                               if((ev.core.xfocus.detail==NotifyNonlinear ||
+                                   ev.core.xfocus.detail==NotifyAncestor ||
+                                   ev.core.xfocus.detail==NotifyInferior) &&
 				  (ev.core.xfocus.mode==NotifyNormal ||
 				  ev.core.xfocus.mode==NotifyWhileGrabbed) &&
 				  (group=GetWindowGroup(ev.core.xfocus.window))!=-1)
