mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 17:01:17 +12:00
Linux: Add CMake find module for wayland + make wayland optional (#572)
This commit is contained in:
parent
aea9f5b966
commit
fcab8f8f1a
12 changed files with 64 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue