                                                                        screen_point,
                                                                        &x_tmp, &y_tmp);
                  if (toplevel_under_pointer)
-@@ -644,6 +651,9 @@ find_window_for_ns_event (NSEvent *nsevent,
+@@ -642,6 +649,9 @@ find_window_for_ns_event (NSEvent *nsevent,
                  GdkWindowObject *grab_private;
                  NSWindow *grab_nswindow;
  

 		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;
 

             /* Implicit grabs do not go through XGrabPointer and thus the
              * event mask should not be checked.
              */
@@ -623,7 +626,11 @@ find_window_for_ns_event (NSEvent *nsevent,
                 GdkWindow *toplevel_under_pointer;
                 gint x_tmp, y_tmp;
 
