From c2a4e2ca5cd8a1b47240390affd43a85d51bef64 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:59:48 +0100 Subject: Fix "Inconsistent FL_FULLSCREEN when creating full-screen window" (#1225) The commit has all platforms send the FL_FULLSCREEN event when a window is created fullscreen. --- src/Fl_win32.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Fl_win32.cxx') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 960638887..d7681c96d 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2342,6 +2342,8 @@ void Fl_WinAPI_Window_Driver::makeWindow() { if (!im_enabled) flImmAssociateContextEx((HWND)x->xid, 0, 0); + + if (w->fullscreen_active()) Fl::handle(FL_FULLSCREEN, w); } -- cgit v1.2.3