diff --git a/documentation/src/wayland.dox b/documentation/src/wayland.dox index b4c9d018b..21806ebb1 100644 --- a/documentation/src/wayland.dox +++ b/documentation/src/wayland.dox @@ -132,7 +132,6 @@ The public C API to Wayland, xkb, EGL and libdecor libraries are obtained with #include #include // for BTN_LEFT, BTN_RIGHT, BTN_MIDDLE #include "../../../libdecor/src/libdecor.h" -#include "../../../libdecor/src/libdecor-plugin.h" #if HAVE_GL # include # include diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index ccafa20d5..13d536c6f 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1474,8 +1474,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; if (!item->label()) break; if (item->user_data() == window) { if (!item->value()) { - item->setonly(); - fl_sys_menu_bar->update(); + Fl_MacOS_Sys_Menu_Bar_Driver::driver()->setonly(item); } break; }