FLTK logo

[branch-1.3] e73ee9b - macOS: fix fullscreen window when other windows were created before.

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] e73ee9b - macOS: fix fullscreen window when other windows were created before. "ManoloFLTK" Oct 29, 2021  
 
commit e73ee9b48bb49d1f10bc3a9e1ca47a114f2d7c1d
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Fri Oct 29 10:14:34 2021 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Fri Oct 29 10:14:53 2021 +0200

    macOS: fix fullscreen window when other windows were created before.
    
    Backported from branch 1.4

 src/Fl_cocoa.mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index be07b09..444486a 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -3304,7 +3304,7 @@ void Fl_X::make(Fl_Window* w)
         [cw center];
       } else if (w->non_modal()) {
         [cw center];
-      } else {
+      } else if (!w->fullscreen_active()) {
         static NSPoint delta = NSZeroPoint;
         delta = [cw cascadeTopLeftFromPoint:delta];
       }
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'.