Index: /wxWidgets/trunk/src/gtk/toplevel.cpp =================================================================== --- src/gtk/toplevel.cpp (revision 74977) +++ src/gtk/toplevel.cpp (revision 75182) @@ -39,4 +39,7 @@ #include // XA_CARDINAL #include "wx/unix/utilsx11.h" +#endif +#ifdef GDK_WINDOWING_WAYLAND + #include #endif @@ -731,5 +734,5 @@ #if defined(GDK_WINDOWING_WAYLAND) && GTK_CHECK_VERSION(3,10,0) else if ( - GDK_IS_WAYLAND_SCREEN(gtk_window_get_screen(GTK_WINDOW(m_widget))) && + GDK_IS_WAYLAND_DISPLAY(gtk_widget_get_display(m_widget)) && gtk_check_version(3,10,0) == NULL) {