|
|
commit 4cac99ed59730b179f6697a7f76a1af67e038288
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu Nov 4 16:09:59 2021 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Nov 4 16:09:59 2021 +0100
Fix issue#288.
Thanks @CendioOssman for pointing to it and its solution.
src/Fl_cocoa.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index 42438f1..f855a12 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -1438,7 +1438,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
main_screen_height = CGDisplayBounds(CGMainDisplayID()).size.height;
int X, Y;
CocoatoFLTK(window, X, Y);
- window->Fl_Widget::resize(X, Y, window->w(), window->h());
+ if (window->x() != X || window->y() != Y) window->position(X, Y);
update_e_xy_and_e_xy_root(nsw);
// at least since MacOS 10.9: OS moves subwindows contained in a moved window
// setSubwindowFrame is no longer necessary.
[ Direct Link to Message ] | |
|
| |