FLTK logo

Re: [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 ]

Re: [fltk/fltk] Fullscreen windows should not be cascaded (Issue #286) ManoloFLTK Oct 28, 2021  
 

The present code in 1.4 that determines whether window cascading occurs is :

if (!force_position()) {
if (w->modal()) {
[cw center];
} else if (w->non_modal()) {
[cw center];
} else if (!w->fullscreen_active()) {
static NSPoint delta = NSZeroPoint;
delta = [cw cascadeTopLeftFromPoint:delta];
}
crect = [cw frame]; // synchronize FLTK's and the system's window coordinates
this->x(round(crect.origin.x/s));
this->y( round((main_screen_height - crect.origin.y)/s) - w->h() );
}

This shows that cascading is already excluded from fullscreen windows.
When I modify a test program and make its window fullscreen, I don't see
a problem.

Could the OP, please, post an example program, or describe the issue in more detail?
TIA


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'.