+#elif defined (HAVE_XLIB)
+ Aspect_Drawable aWindowHandle = (Aspect_Drawable )winId();
+ Handle(Aspect_DisplayConnection) aDispConnection = myViewer->GetContext()->CurrentViewer()->Driver()->GetDisplayConnection();
+ Handle(Aspect_Window) aWnd = new Xw_Window (aDispConnection, aWindowHandle);
+#elif defined (__APPLE__)