Re: Fl_Menu_ and Fl_Menu_Item::pulldown incremental overhaul?
Albrecht Schlosser
Nov 20, 2022
On 11/20/22 16:07 Albrecht Schlosser wrote:
After all I believe that a full rewrite from scratch ... would be as
easy as it could be ...
One more thought: the new menu system would give us the chance to
redesign the menu display strategy, similar to what current browsers
seem to do, maybe related to necessary Wayland changes since Wayland has
limited user control about popup (menu) windows.
It looks like recent Firefox opens one "main" menu window and displays
submenus by "shifting" the main menu out of the menu window, making room
for the submenu - rather than opening a second (and third and fourth
...) window. Example: click the "hamburger menu", then on "Help" or
"More tools". This is true even for the X11 version of Firefox [1].
I'm not sure if this is the *best* way to deal with (user) menus but
there's at least a chance for a menu redesign that is more Wayland
compatible than our current menu system. Particularly very long menus
are problematic and could be improved by a new menu system.
[1] FYI: You can start a new instance of firefox as a Wayland process if
you set an environment variable and use another profile than already
running firefox processes, for instance:
$ MOZ_ENABLE_WAYLAND=1 firefox -P
Commandline switch -P runs the firefox profile manager so you can either
use an existing profile or create a new one if necessary.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.