From 72f860438170638d6aa492b477a59ff88b565d9d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 10 Feb 2023 16:58:33 +0100 Subject: Don't for a box type for pulldowns (#675) --- src/Fl_Menu.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 8381937f0..91dda87b9 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -373,7 +373,8 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp, drawn_selected = -1; if (button) { box(button->box()); - if (box() == FL_NO_BOX || box() == FL_FLAT_BOX) box(FL_UP_BOX); + // don't force a box type, but make sure that the background is redrawn + if (box() == FL_NO_BOX) box(FL_FLAT_BOX); } else { box(FL_UP_BOX); } -- cgit v1.2.3