From 6e922b8005a880433851747c43fa608ddfb753bf Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 30 Jan 2025 11:14:17 +0100 Subject: 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. --- src/Fl_Window_Driver.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window_Driver.H') 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; } -- cgit v1.2.3