X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..14722c43c30918cd8fbba956b50ac3426d2fe339:/src/gtk/nativewin.cpp diff --git a/src/gtk/nativewin.cpp b/src/gtk/nativewin.cpp index 99ded721f8..d95d98094d 100644 --- a/src/gtk/nativewin.cpp +++ b/src/gtk/nativewin.cpp @@ -96,7 +96,11 @@ bool wxNativeContainerWindow::Create(wxNativeContainerWindowId anid) { bool rc; #ifdef __WXGTK3__ +#ifdef GDK_WINDOWING_X11 GdkWindow * const win = gdk_x11_window_foreign_new_for_display(gdk_display_get_default(), anid); +#else + GdkWindow * const win = NULL; +#endif #else GdkWindow * const win = gdk_window_foreign_new(anid); #endif