diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-23 11:37:15 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-23 11:37:25 +0100 |
| commit | 2d71a95b5d3b6eddb6d193a0d22a618938798c4f (patch) | |
| tree | 7754a8e1a4a93bd582ddda080758a1b0bd2d0432 /documentation/src/osissues.dox | |
| parent | 4c854dbbc3f9be1831105943cb87f94bceb32cc2 (diff) | |
Wayland: replace global fl_display by function struct wl_display *fl_wl_display().
Diffstat (limited to 'documentation/src/osissues.dox')
| -rw-r--r-- | documentation/src/osissues.dox | 6 |
1 files changed, 3 insertions, 3 deletions
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 *) |
