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/Fl_Window_Driver.H | |
| 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/Fl_Window_Driver.H')
| -rw-r--r-- | src/Fl_Window_Driver.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Window_Driver.H b/src/Fl_Window_Driver.H index cec60a2da..865c57af9 100644 --- a/src/Fl_Window_Driver.H +++ b/src/Fl_Window_Driver.H @@ -2,7 +2,7 @@ // A base class for platform specific window handling code // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2024 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 @@ -152,6 +152,7 @@ public: virtual void unmap() {} virtual void fullscreen_on() {} virtual void fullscreen_off(int /*X*/, int /*Y*/, int /*W*/, int /*H*/) {} + virtual void fullscreen_screens(bool /*on_off*/) {} virtual void maximize(); virtual void un_maximize(); virtual bool maximize_needs_hide() { return false; } |
