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.
This commit is contained in:
Matthias Melcher 2024-04-26 20:19:08 +02:00
parent 445dcb829d
commit eeed395246

View File

@ -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().