From 66e70fe299e15124d9250a6a24e591cbb733713a Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Thu, 30 Apr 2020 13:46:42 +1000 Subject: GHOST: initial Wayland support Usable with the CMake option 'WITH_GHOST_WAYLAND' The following functionality is working: - Building with X11 and Wayland at the same time, wayland is used when available. - Keyboard, pointer handling. - Cursor handling. - Dedicated off-screen windows. - Drag & drop. - Copy & paste. - Pointer grabbing. See D6567 for further details. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f0ff3d1427..1201ddda333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,10 @@ mark_as_advanced(WITH_GHOST_DEBUG) option(WITH_GHOST_SDL "Enable building Blender against SDL for windowing rather than the native APIs" OFF) mark_as_advanced(WITH_GHOST_SDL) +if(UNIX AND NOT APPLE) + option(WITH_GHOST_WAYLAND "Enable building Blender against Wayland for windowing" OFF) +endif() + if(WITH_X11) option(WITH_GHOST_XDND "Enable drag'n'drop support on X11 using XDND protocol" ON) endif() -- cgit v1.2.3