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_fullscreen.cxx | |
| 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_fullscreen.cxx')
| -rw-r--r-- | src/Fl_Window_fullscreen.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Window_fullscreen.cxx b/src/Fl_Window_fullscreen.cxx index e464a9fba..79e57a0c8 100644 --- a/src/Fl_Window_fullscreen.cxx +++ b/src/Fl_Window_fullscreen.cxx @@ -1,7 +1,7 @@ // // Fullscreen window support for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2015 by Bill Spitzak and others. +// Copyright 1998-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 @@ -75,11 +75,13 @@ void Fl_Window::fullscreen_screens(int top, int bottom, int left, int right) { fullscreen_screen_bottom = -1; fullscreen_screen_left = -1; fullscreen_screen_right = -1; + pWindowDriver->fullscreen_screens(false); } else { fullscreen_screen_top = top; fullscreen_screen_bottom = bottom; fullscreen_screen_left = left; fullscreen_screen_right = right; + pWindowDriver->fullscreen_screens(true); } if (shown() && fullscreen_active()) |
