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

       _gdk_display_add_pointer_grab  (display,
 				      pointer_window,
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 079e4fe..d975384 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -561,6 +561,7 @@ find_window_for_ns_event (NSEvent *nsevent,
   NSPoint point;
   NSPoint screen_point;
   NSEventType event_type;

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