From 4b141bb2f8b29832442aea8078e9e74971c98e74 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 16 Nov 2025 10:09:01 +0100 Subject: Document with more details function fl_wl_gc() --- FL/wayland.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/wayland.H b/FL/wayland.H index 71981d974..6d1f0e771 100644 --- a/FL/wayland.H +++ b/FL/wayland.H @@ -34,7 +34,8 @@ extern FL_EXPORT struct wl_surface *fl_wl_surface(struct wld_window *xid); extern FL_EXPORT struct wld_window *fl_wl_xid(const Fl_Window *win); /** Returns the Fl_Window corresponding to a given the platform-specific window reference */ extern FL_EXPORT Fl_Window *fl_wl_find(struct wld_window *); -/** Returns the cairo context associated to the current window or Fl_Image_Surface */ +/** Returns the cairo context associated to the current window or Fl_Image_Surface. + Usable both when the Wayland/X11 hybrid FLTK library runs as a Wayland client and when it runs as an X11 client. */ extern FL_EXPORT cairo_t *fl_wl_gc(); /** Returns the wl_compositor of the current Wayland session. This allows, for example, to create a wl_surface with -- cgit v1.2.3