summaryrefslogtreecommitdiff
path: root/src/Fl_Menu.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-10 16:58:33 +0100
committerMatthias Melcher <github@matthiasm.com>2023-02-10 16:58:33 +0100
commit72f860438170638d6aa492b477a59ff88b565d9d (patch)
tree711010b349f004989889e71a07afd7a1720b26f3 /src/Fl_Menu.cxx
parent4440e356934dad02e6f632e7bf68c916b4f2f1dc (diff)
Don't for a box type for pulldowns (#675)
Diffstat (limited to 'src/Fl_Menu.cxx')
-rw-r--r--src/Fl_Menu.cxx3
1 files changed, 2 insertions, 1 deletions
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);
}