#include "wayland.h" #ifdef HAVE_WAYLAND_SUPPORT #include bool IsWayland() { return GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default()); } #endif // Temporary hack to backport 800d6ed69b from wxWidgets until 3.2.2 is released. #ifdef WAYLAND_MOVE_SUBSURFACE_BACKPORT #include #define private public #include #undef private void MoveWaylandSubsurface(wxGLCanvas* win) { if (!IsWayland()) return; int x, y; gdk_window_get_origin(win->GTKGetDrawingWindow(), &x, &y); wl_subsurface_set_position(win->m_wlSubsurface, x, y); } #endif