From fcdc2f0e102497313232cc7c0a570cc4c524a02b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 30 Aug 2022 12:58:57 +0200 Subject: Attempt to improve fl_disable_wayland(). --- FL/platform.H | 1 + FL/wayland.H | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'FL') diff --git a/FL/platform.H b/FL/platform.H index 834a32392..81d5a737a 100644 --- a/FL/platform.H +++ b/FL/platform.H @@ -76,5 +76,6 @@ extern FL_EXPORT void fl_close_display(); extern FL_EXPORT Window fl_window; extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b); extern FL_EXPORT void fl_open_callback(void (*)(const char *)); +extern FL_EXPORT void fl_disable_wayland(); #endif // !FL_PLATFORM_H diff --git a/FL/wayland.H b/FL/wayland.H index 66b633182..2f88ce2e9 100644 --- a/FL/wayland.H +++ b/FL/wayland.H @@ -39,10 +39,6 @@ extern FL_EXPORT cairo_t *fl_wl_cairo(); typedef void *EGLContext; /** Returns the EGLContext corresponding to the given GLContext */ extern FL_EXPORT EGLContext fl_wl_glcontext(GLContext rc); -/** Prevent the FLTK library from using its wayland backend. - Call this early in your main(), before fl_open_display() runs. */ -extern FL_EXPORT void fl_disable_wayland(); - #ifndef FL_DOXYGEN -- cgit v1.2.3