macOS: Fix scaling subwindows - cont'd #927

This commit is contained in:
ManoloFLTK
2024-05-08 19:43:56 +02:00
parent e609378264
commit 324fcfcb62
+7 -2
View File
@@ -1370,8 +1370,13 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
W = window->w();
H = window->h();
} else if (Fl_Cocoa_Window_Driver::driver(window)->through_resize()) {
X = window->x();
Y = window->y();
if (window->parent()) {
X = window->x();
Y = window->y();
} else {
// Recalculate the FLTK position from the current Cocoa position
CocoatoFLTK(window, X, Y);
}
W = window->w();
H = window->h();
} else {