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.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.