From 8454135d0c8918ed16441bbc08ef176cd2e02c5e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:20:47 +0100 Subject: Wayland: add support of the "XDG dialog windows" protocol --- CMake/options.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMake') diff --git a/CMake/options.cmake b/CMake/options.cmake index f9855a298..063dc48b6 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -310,6 +310,14 @@ if(UNIX) endif(FLTK_BACKEND_WAYLAND) if(FLTK_USE_WAYLAND) + pkg_get_variable(PROTOCOLS wayland-protocols pkgdatadir) + string(REPLACE "//" "/" PROTOCOLS ${PROTOCOLS}) + if(EXISTS ${PROTOCOLS}/staging/xdg-dialog/xdg-dialog-v1.xml) + set(HAVE_XDG_DIALOG 1) + message(STATUS "Found dev files for Wayland protocol 'XDG dialog windows'") + else() + set(HAVE_XDG_DIALOG 0) + endif() if(FLTK_BACKEND_X11) include(FindX11) endif() -- cgit v1.2.3