summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-02-20 16:00:01 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-02-20 16:00:01 +0100
commitba5ed296e9faf92a047f68e83e9348eb43a40eec (patch)
tree4edae89c3cf0ce5bf499ef1ceb8f86926d0ed40e /src/drivers
parent4649188cf67c1c19dac8262dce7789384ded2ded (diff)
Improve implementation of the macOS Window menu
The macOS Window menu is connected to the item array of the macOS menubar via FL_SUBMENU_POINTER. This facilitates memorization of pointers to items of the macOS menubar because the item array no longer changes each time a window opens of gets closed.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H b/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
index 94d890f3d..c670a643b 100644
--- a/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
+++ b/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
@@ -21,6 +21,7 @@
class Fl_MacOS_Sys_Menu_Bar_Driver : public Fl_Sys_Menu_Bar_Driver {
public:
+ Fl_Menu_Item *window_menu_items;
Fl_MacOS_Sys_Menu_Bar_Driver();
virtual ~Fl_MacOS_Sys_Menu_Bar_Driver();
void update() FL_OVERRIDE;