From 5f0987d4ed9541786e9348d57e06b12897885f99 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 19 Jun 2026 10:54:58 +0200 Subject: [PATCH] Restore building for Wayland with early Linux versions without the tablet-v2.xml protocol file --- CMake/options.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMake/options.cmake b/CMake/options.cmake index b68b3c7b8..e06b21d01 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -516,7 +516,12 @@ if(FLTK_OPTION_PEN_SUPPORT) else() set(FLTK_HAVE_PEN_SUPPORT 0) endif() - else(WIN32) # all other platforms + elseif(FLTK_USE_WAYLAND) + pkg_get_variable(PROTOCOLS wayland-protocols pkgdatadir) + if(EXISTS ${PROTOCOLS}/stable/tablet/tablet-v2.xml) + set(FLTK_HAVE_PEN_SUPPORT 1) + endif() + else() # all other platforms set(FLTK_HAVE_PEN_SUPPORT 1) endif(WIN32)