- if (e->xfocus.mode == NotifyGrab) return;
- /*|| e.xfocus.mode == NotifyUngrab ||*/
- /* From Metacity, from WindowMaker, ignore all funky pointer
- root events. Its commented out cuz I don't think we need this
- at all. If problems arise we can look into it */
- /*e.xfocus.detail > NotifyNonlinearVirtual) */
+ if (e->xfocus.mode == NotifyGrab ||
+ !(e->xfocus.detail == NotifyNonlinearVirtual ||
+ e->xfocus.detail == NotifyNonlinear))
+ return;