summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-08-31 20:36:34 +0200
committerMatthias Melcher <github@matthiasm.com>2024-08-31 20:36:34 +0200
commitd51046cdeaf1dceac91e70fe6be358502280a431 (patch)
treefccd991be47f4b69935bb378d737a0f9de242f2e /fluid/Fl_Window_Type.cxx
parente01c9ff6a03f3775e0d93a56d671a8c2f8cf96a2 (diff)
FLUID: Add Synchronized Resize. #1055
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 2e77d386c..821f59cde 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -5,7 +5,7 @@
// for interacting with the overlay, which allows the user to
// select, move, and resize the children widgets.
//
-// Copyright 1998-2023 by Bill Spitzak and others.
+// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -408,7 +408,12 @@ Fl_Window_Type Fl_Window_type;
// Resize from window manager...
void Overlay_Window::resize(int X,int Y,int W,int H) {
- Fl_Widget* t = resizable(); resizable(0);
+ undo_checkpoint_once(kUndoWindowResize);
+
+ Fl_Widget* t = resizable();
+ if (Fl_Type::allow_layout == 0) {
+ resizable(0);
+ }
// do not set the mod flag if the window was not resized. In FLUID, all
// windows are opened without a given x/y position, so modifying x/y