Linux: Add CMake find module for wayland + make wayland optional (#572)

This commit is contained in:
SSimco 2022-12-15 07:44:14 +00:00 committed by GitHub
parent aea9f5b966
commit fcab8f8f1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 64 additions and 16 deletions

View file

@ -5,7 +5,6 @@
#if BOOST_OS_LINUX
#include "xcb/xproto.h"
#include <gdk/gdkkeysyms.h>
#include <wayland-client.h>
#endif
#if BOOST_OS_MACOS
@ -29,9 +28,10 @@ struct WindowHandleInfo
// XCB (not used by GTK so we cant retrieve these without making our own window)
//xcb_connection_t* xcb_con{};
//xcb_window_t xcb_window{};
// Wayland
wl_display* display;
wl_surface* surface;
#ifdef HAS_WAYLAND
struct wl_display* display;
struct wl_surface* surface;
#endif // HAS_WAYLAND
#else
void* handle;
#endif