  		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,
+@@ -652,7 +662,21 @@ find_window_for_ns_event (NSEvent *nsevent,
                  *x = point.x;
                  *y = grab_private->height - point.y;
  

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

 	      }
 
 	    return NULL;
@@ -683,6 +707,7 @@ find_window_for_ns_event (NSEvent *nsevent,
               {
                 GdkWindowObject *toplevel_private;
                 GdkWindowImplQuartz *toplevel_impl;
+                gboolean lion;
 
                 toplevel = toplevel_under_pointer;
 
@@ -712,6 +737,20 @@ find_window_for_ns_event (NSEvent *nsevent,
                         return NULL;
                       }
                   }
