|
|
More fallout from 46235ff. An FLTK application no longer gets calls to Fl_Window::resize() when a window is moved around on macOS.
This bug has been identified on master already and fixed in 3bb3429, so it just needs a back port. Something like:
[ossman@ossman]$ git diff src/Fl_cocoa.mm | cat
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index be07b09fb..ae2958861 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1438,7 +1440,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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
[ Direct Link to Message ] | |
|
| |