 +
  void
  _gdk_window_impl_new (GdkWindow     *window,
-		      GdkWindow     *real_parent,
-@@ -1036,10 +1042,10 @@ _gdk_window_impl_new (GdkWindow     *window,
- 	[impl->toplevel setContentView:impl->view];
- 	[impl->view release];
- 
--        impl->layer_view = [[NSView alloc] initWithFrame:content_rect];
--        [impl->view addSubview:impl->layer_view];
--        [impl->layer_view setWantsLayer:YES];
--        [impl->layer_view release];
-+        //impl->layer_view = [[NSView alloc] initWithFrame:content_rect];
-+        //[impl->view addSubview:impl->layer_view];
-+        //[impl->layer_view setWantsLayer:YES];
-+        //[impl->layer_view release];
-       }
-       break;
- 
+ 		      GdkWindow     *real_parent,

 static GdkWindow *
 find_toplevel_under_pointer (GdkDisplay *display,
                              NSPoint     screen_point,
@@ -869,33 +896,20 @@ find_window_for_ns_event (NSEvent *nsevent,
               {
                 GdkWindowObject *toplevel_private;
                 GdkWindowImplQuartz *toplevel_impl;

         type = _gdk_quartz_keys_event_type (nsevent);
         if (type == GDK_NOTHING)
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 5b9ceef..050139a 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -889,6 +889,12 @@ get_nsscreen_for_point (gint x, gint y)
   return screen;
 }
 
+gboolean
+gdk_window_supports_nsview_embedding ()
+{
