From 4d94a08bd2fcd681d33bfb51228ace3b432b19ab Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 17 Jul 2023 12:56:23 +0200 Subject: FLUID: fix window visibility across project file update --- fluid/Fl_Widget_Type.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fluid/Fl_Widget_Type.h') diff --git a/fluid/Fl_Widget_Type.h b/fluid/Fl_Widget_Type.h index b41ba0e53..580a8cacf 100644 --- a/fluid/Fl_Widget_Type.h +++ b/fluid/Fl_Widget_Type.h @@ -51,6 +51,12 @@ class Fl_Widget_Type : public Fl_Type { protected: + /// This variable is set for visible windows in batch mode. + /// We can't open a window in batch mode, even if we want the "visible" flags + /// set, so we need a second place to store this information while also + /// disabeling the output of the "hide" property by the Widget Type. + uchar override_visible_; + void write_static(Fd_Code_Writer& f) FL_OVERRIDE; void write_code1(Fd_Code_Writer& f) FL_OVERRIDE; void write_widget_code(Fd_Code_Writer& f); -- cgit v1.2.3