diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-31 15:35:52 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-31 15:35:52 +0100 |
| commit | bdb5972504cf99ddf04a675a1d04d773b1b7c578 (patch) | |
| tree | 01372c25cd4c16f3c1db88193604a01d220a932d /src/Fl_cocoa.mm | |
| parent | 0ac13799853e87c331fc99f7387a5d5603c5820b (diff) | |
macOS: prevent changing window border while window is maximized
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 01995984b..e7e3c8a50 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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; |
