diff --git a/src/app_ex.cpp b/src/app_ex.cpp index 8b189f18c..3c0111e97 100644 --- a/src/app_ex.cpp +++ b/src/app_ex.cpp @@ -1,6 +1,5 @@ #ifdef __WXGTK__ -#include #include #endif @@ -299,11 +298,11 @@ int wxPyApp::MainLoop() bool wxPyApp::IsDisplayAvailable() { #ifdef __WXGTK__ - Display* display; - display = XOpenDisplay(NULL); + GdkDisplay* display; + display = gdk_display_open(NULL); if (display == NULL) return false; - XCloseDisplay(display); + gdk_display_close(display); return true; #endif