  
    view = (GdkQuartzView *)[[nsevent window] contentView];
  
-@@ -608,6 +609,8 @@ find_window_for_ns_event (NSEvent *nsevent,
+@@ -606,6 +607,8 @@ find_window_for_ns_event (NSEvent *nsevent,
          grab = _gdk_display_get_last_pointer_grab (display);
  	if (WINDOW_IS_TOPLEVEL (toplevel) && grab)
  	  {

 		grab_toplevel = gdk_window_get_effective_toplevel (grab->window);
                 grab_private = (GdkWindowObject *)grab_toplevel;
 
@@ -654,7 +664,20 @@ find_window_for_ns_event (NSEvent *nsevent,
                 *x = point.x;
                 *y = grab_private->height - point.y;
 

+		  {
+                    return NULL;
+                  }
 
                 *x = x_tmp;
                 *y = y_tmp;
