diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-09 15:19:15 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-09 15:19:15 +0200 |
| commit | 203e7b70985b269de64a5b855c0ed9f1c5dfffd9 (patch) | |
| tree | 233666e3e01800de81b824a2cd09f6399d15ade4 /FL/platform.H | |
| parent | 1b0f21cc8fec9a933770a2ed6d7feafe91ee8333 (diff) | |
New OPTION_WAYLAND_ONLY for CMake to build pure Wayland platform.
Diffstat (limited to 'FL/platform.H')
| -rw-r--r-- | FL/platform.H | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
