From eeed39524606f1717dd2634ffe52e4640a606841 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 26 Apr 2024 20:19:08 +0200 Subject: [PATCH] Fix repositioning subwindows. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.  --- src/Fl_Group.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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().