FLTK logo

[branch-1.3] 4cac99e - Fix issue#288. Thanks @CendioOssman for pointing to it and its solution.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[branch-1.3] 4cac99e - Fix issue#288. Thanks @CendioOssman for pointing to it and its solution. "ManoloFLTK" Nov 04, 2021  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.