macOS: prevent changing window border while window is maximized

This commit is contained in:
ManoloFLTK 2024-10-31 15:35:52 +01:00
parent 0ac1379985
commit bdb5972504
1 changed files with 2 additions and 2 deletions

View File

@ -3403,8 +3403,8 @@ void Fl_Cocoa_Window_Driver::use_border() {
if (!shown() || pWindow->parent()) return;
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
if (fl_mac_os_version >= 100600) {
if (pWindow->fullscreen_active()) {
// prevent changing border while window is fullscreen
if (pWindow->fullscreen_active() || pWindow->maximize_active()) {
// prevent changing border while window is fullscreen or maximized
static bool active = false;
if (!active) {
active = true;