summaryrefslogtreecommitdiff
path: root/fluid/Fl_Widget_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-17 12:56:23 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-17 12:56:35 +0200
commit4d94a08bd2fcd681d33bfb51228ace3b432b19ab (patch)
tree5867ce7627bf48eaf8cd7fe8ce76839ea37ab36b /fluid/Fl_Widget_Type.h
parent4dffa31520f66fe0baea574ea391ec58a77eaa49 (diff)
FLUID: fix window visibility across project file update
Diffstat (limited to 'fluid/Fl_Widget_Type.h')
-rw-r--r--fluid/Fl_Widget_Type.h6
1 files changed, 6 insertions, 0 deletions
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);