summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-09-06 14:02:53 +0200
committerMatthias Melcher <github@matthiasm.com>2024-09-06 14:02:53 +0200
commit47be73d4cb18bd5644ef31c2050a1e4b2790cdbb (patch)
tree11e2294b0059c0efaee9bf99c68fc0e5545a0360 /fluid/Fl_Window_Type.cxx
parentd8eb45531e1d1cb49f79b89075a2eaf6ad477560 (diff)
FLUID: fixing resizable behavior for windows in live mode (#1055)
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 821f59cde..4b4944d8e 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -1535,6 +1535,9 @@ void Fl_Window_Type::leave_live_mode() {
copy all properties from the edit widget to the live widget
*/
void Fl_Window_Type::copy_properties() {
+ Fl_Window *self = static_cast<Fl_Window*>(o);
+ Fl_Window *live = static_cast<Fl_Window*>(live_widget);
+ if (self->resizable() == self)
+ live->resizable(live);
Fl_Widget_Type::copy_properties();
- /// \todo copy resizing constraints over
}