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 | |
| parent | 1b0f21cc8fec9a933770a2ed6d7feafe91ee8333 (diff) | |
New OPTION_WAYLAND_ONLY for CMake to build pure Wayland platform.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/platform.H | 5 | ||||
| -rw-r--r-- | FL/wayland.H | 4 | ||||
| -rw-r--r-- | FL/x11.H | 7 |
3 files changed, 7 insertions, 9 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 diff --git a/FL/wayland.H b/FL/wayland.H index 2f88ce2e9..3c16dc22a 100644 --- a/FL/wayland.H +++ b/FL/wayland.H @@ -42,7 +42,9 @@ extern FL_EXPORT EGLContext fl_wl_glcontext(GLContext rc); #ifndef FL_DOXYGEN +# if FLTK_USE_X11 // *********** for X11 component *********** -# include "x11.H" +# include "x11.H" +# endif #endif // FL_DOXYGEN @@ -108,13 +108,6 @@ extern FL_EXPORT Fl_XFont_On_Demand fl_xfont; extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid() -#if USE_PANGO -struct flCairoRegion { - int count; - struct _cairo_rectangle *rects; -}; // a region is the union of a series of rectangles -#endif - #endif // FL_LIBRARY || FL_INTERNALS #endif // FL_DOXYGEN |
