summaryrefslogtreecommitdiff
path: root/src/Fl_Group.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-04-26 20:19:08 +0200
committerMatthias Melcher <github@matthiasm.com>2024-04-26 20:19:08 +0200
commiteeed39524606f1717dd2634ffe52e4640a606841 (patch)
treecd53cc78735043d4b8acbc1887f0ff706726f76e /src/Fl_Group.cxx
parent445dcb829dd22f0e809538cdfe4a6c3535b2057f (diff)
Fix repositioning subwindows.
The commit f288aea from Feb. 23rd introduced a regression where children of subwindows were moved inside the subwindow when only the subwindow itself was supposed to move. 
Diffstat (limited to 'src/Fl_Group.cxx')
-rw-r--r--src/Fl_Group.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index 5232f6eaa..2576efea7 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -837,7 +837,8 @@ void Fl_Group::resize(int X, int Y, int W, int H) {
if (!resizable() || (dw==0 && dh==0)) {
- if (as_window() && !parent()) // top window
+ // top window and subwindows must not change the position of their children
+ if (as_window())
dx = dy = 0;
// Check if there's anything to do, otherwise don't call resize().