FLTK logo

[fltk/fltk] Fullscreen windows should not be cascaded (Issue #286)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Fullscreen windows should not be cascaded (Issue #286) "Pierre Ossman (Work account)" Oct 28, 2021  
 

There is a bug in the macOS window creation that misplaces windows if they are shown whilst in fullscreen mode. This bug has probably been around for ages, we just haven't noticed it until know as our other windows were previously all dialogs (which don't trigger the cascading offset for some reason).

I've confirmed that this fixes the issue:

diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index be07b09fb..341d91a3c 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3299,7 +3299,7 @@ void Fl_X::make(Fl_Window* w)
     [cw setLevel:winlevel];
     
     q_set_window_title(cw, w->label(), w->iconlabel());
-    if (!w->force_position()) {
+    if (!w->force_position() && !w->fullscreen_active()) {
       if (w->modal()) {
         [cw center];
       } else if (w->non_modal()) {


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 ]
 
     
Previous Message ]New Message | Reply ]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'.