diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-10 16:58:33 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-02-10 16:58:33 +0100 |
| commit | 72f860438170638d6aa492b477a59ff88b565d9d (patch) | |
| tree | 711010b349f004989889e71a07afd7a1720b26f3 /src | |
| parent | 4440e356934dad02e6f632e7bf68c916b4f2f1dc (diff) | |
Don't for a box type for pulldowns (#675)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Menu.cxx | 3 |
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); } |
