From 29755e1df82e34061a0b0586234a5aaac5177d35 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 24 Jun 2022 16:10:20 +1000 Subject: GHOST/Wayland: support client-side window decorations This implements client-side window decorations for moving and resizing windows and HiDPI support. This functionality depends on the external project 'libdecor' that is currently a build option: WITH_GHOST_WAYLAND_LIBDECOR. Reviewed by: brecht, campbellbarton Ref D7989 --- build_files/cmake/platform/platform_unix.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build_files/cmake') diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index 6750c23d548..781e2798fea 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -615,6 +615,10 @@ if(WITH_GHOST_WAYLAND) pkg_check_modules(wayland-cursor REQUIRED wayland-cursor) pkg_check_modules(dbus REQUIRED dbus-1) + if(WITH_GHOST_WAYLAND_LIBDECOR) + pkg_check_modules(libdecor REQUIRED libdecor-0>=0.1) + endif() + set(WITH_GL_EGL ON) list(APPEND PLATFORM_LINKLIBS @@ -624,6 +628,13 @@ if(WITH_GHOST_WAYLAND) ${wayland-cursor_LINK_LIBRARIES} ${dbus_LINK_LIBRARIES} ) + + if(WITH_GHOST_WAYLAND_LIBDECOR) + list(APPEND PLATFORM_LINKLIBS + ${libdecor_LIBRARIES} + ) + add_definitions(-DWITH_GHOST_WAYLAND_LIBDECOR) + endif() endif() if(WITH_GHOST_X11) -- cgit v1.2.3