diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-01-30 11:14:17 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-01-30 11:14:17 +0100 |
| commit | 6e922b8005a880433851747c43fa608ddfb753bf (patch) | |
| tree | 81b1724d04ac0127359f9244d8e89fbc2bfd6adf /src/drivers | |
| parent | 18ea5bcb208b60de407addbbcc837e67037f943d (diff) | |
macOS: Fix "Full screen broken on macOS in FLTK 1.3.10 (regression)" (#1192)
FLTK now supports 2 types of fullscreen modes under macOS:
1) normal macOS fullscreen mode where the menubar and titlebar appear when mouse is moved to top of screen
and the window covers one screen only;
2) multiple-screen mode that requires calling Fl_Window::fullscreen_screens() before.
This commit fixes all possible transitions between these fullscreen modes and normal window mode.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H index ef57a4607..c4d4e31da 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H @@ -2,7 +2,7 @@ // Definition of Apple Cocoa window driver // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2022 by Bill Spitzak and others. +// Copyright 2010-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -133,6 +133,7 @@ public: void unmap() FL_OVERRIDE; void fullscreen_on() FL_OVERRIDE; void fullscreen_off(int X, int Y, int W, int H) FL_OVERRIDE; + void fullscreen_screens(bool on_off) FL_OVERRIDE; void maximize() FL_OVERRIDE; void un_maximize() FL_OVERRIDE; void use_border() FL_OVERRIDE; |
