[master] dfe73d8 - Document that the Wayland platform doesn't send FL_HIDE to minimized windows.
"ManoloFLTK"
Aug 03, 2025
commit dfe73d8ebc42737d9e8109fc51c59d82c86f0939
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Aug 3 09:47:58 2025 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Aug 3 09:47:58 2025 +0200
Document that the Wayland platform doesn't send FL_HIDE to minimized windows.
FL/Enumerations.H | 4 +++-
documentation/src/events.dox | 10 +---------
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git FL/Enumerations.H FL/Enumerations.H
index 6674e74..032717f 100644
--- FL/Enumerations.H
+++ FL/Enumerations.H
@@ -256,7 +256,9 @@ enum Fl_Event { // events
/** This widget is no longer visible, due to Fl_Widget::hide() being
called on it or one of its parents, or due to a parent window being
- minimized. Fl_Widget::visible() may still be true after this, but the
+ minimized (under Wayland, minimized toplevel windows don't receive
+ the FL_HIDE event).
+ Fl_Widget::visible() may still be true after this, but the
widget is visible only if visible() is true for it and all its
parents (use Fl_Widget::visible_r() to check this).
*/
diff --git documentation/src/events.dox documentation/src/events.dox
index 765e072..af0b381 100644
--- documentation/src/events.dox
+++ documentation/src/events.dox
@@ -301,15 +301,7 @@ This widget is no longer visible, due to
\ref Fl_Widget::hide() "hide()"
being called on it or one of its parents, or due to a parent window
being minimized.
-Please note that although
-\ref Fl_Widget::visible() "visible()"
-may still return true for this widget after receiving this event,
-it is only truly visible if
-\ref Fl_Widget::visible() "visible()"
-is true for both it and all of its parents.
-(You can use
-\ref Fl_Widget::visible_r() "visible_r()"
-to check this).
+\see FL_HIDE
\subsection events_fl_show FL_SHOW
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.