FLTK logo

[branch-1.4] c223f99 - Restore use of menubar at top of fullscreen window under X11

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[branch-1.4] c223f99 - Restore use of menubar at top of fullscreen window under X11 "ManoloFLTK" Aug 31, 2025  
 
commit c223f99f71e58e0bdc4a8b600e964e231d6e214e
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Aug 31 16:27:06 2025 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Aug 31 16:27:06 2025 +0200

    Restore use of menubar at top of fullscreen window under X11

 src/Fl_Window_Driver.cxx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git src/Fl_Window_Driver.cxx src/Fl_Window_Driver.cxx
index 4abeda8..5c40951 100644
--- src/Fl_Window_Driver.cxx
+++ src/Fl_Window_Driver.cxx
@@ -253,7 +253,11 @@ void Fl_Window_Driver::menu_window_area(int &X, int &Y, int &W, int &H, int nscr
   int mx, my;
   Fl_Screen_Driver *scr_driver = Fl::screen_driver();
   if (nscreen < 0) nscreen = scr_driver->get_mouse(mx, my);
-  scr_driver->screen_work_area(X, Y, W, H, nscreen);
+  Fl_Window *parent = Fl_Window_Driver::menu_parent();
+  if (parent && parent->fullscreen_active())
+    scr_driver->screen_xywh(X, Y, W, H, nscreen);
+  else
+    scr_driver->screen_work_area(X, Y, W, H, nscreen);
 }
 
 /** Returns  the platform-specific reference of the given window, or NULL if that window isn't shown.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.