From 203e7b70985b269de64a5b855c0ed9f1c5dfffd9 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:19:15 +0200 Subject: New OPTION_WAYLAND_ONLY for CMake to build pure Wayland platform. --- FL/platform.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'FL/platform.H') diff --git a/FL/platform.H b/FL/platform.H index 834a32392..75ec2f841 100644 --- a/FL/platform.H +++ b/FL/platform.H @@ -39,6 +39,9 @@ class Fl_Window; # include "mac.H" # elif defined(FLTK_USE_WAYLAND) # include "wayland.H" +# if !FLTK_USE_X11 + typedef struct wld_window *Window; +# endif # elif defined(FLTK_USE_X11) # include "x11.H" # endif // _WIN32 @@ -58,7 +61,7 @@ public: // static variables, static functions and member functions static Fl_X* first; static Fl_X* i(const Fl_Window* w) {return (Fl_X*)w->i;} -# if defined(FLTK_USE_X11) // for backward compatibility +# if defined(FLTK_USE_X11) && FLTK_USE_X11 // for backward compatibility static void make_xid(Fl_Window*, XVisualInfo* =fl_visual, Colormap=fl_colormap); static Fl_X* set_xid(Fl_Window*, Window); # endif -- cgit v1.2.3