From 2d71a95b5d3b6eddb6d193a0d22a618938798c4f Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 23 Mar 2022 11:37:15 +0100 Subject: Wayland: replace global fl_display by function struct wl_display *fl_wl_display(). --- documentation/src/osissues.dox | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox index 4caccda11..984ecb171 100644 --- a/documentation/src/osissues.dox +++ b/documentation/src/osissues.dox @@ -943,11 +943,11 @@ from X11-specific source code : #endif \endcode -extern struct wl_display *fl_display; +extern struct wl_display *fl_wl_display(); \par -After fl_open_display() has run, the \c fl_display global variable points to the +After fl_open_display() has run, function \c fl_wl_display() returns a pointer to the struct wl_display representing the connection between the application and Wayland. -Therefore, \c wl_display_get_fd(fl_display) gives the file descriptor one can +For example, \c wl_display_get_fd(fl_wl_display()) gives the file descriptor one can use to communicate with the Wayland compositor according to the Wayland protocol. Window fl_xid(const Fl_Window *) -- cgit v1.2.3