From b1b8bd12aefadf6d9c30bd90e61ee3144218ae0a Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 14 Aug 2006 13:45:05 +0000 Subject: fix minor menu separator highlight issue --- ChangeLog | 3 +++ src/FbTk/Menu.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index df2f449..1cc4d6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: +*06/08/14: + * Fix minor menu separator highlight issue (Simon) + FbTk/Menu.cc *06/08/12: * Fix placement of restored fullscreen windows (Mark) Window.cc diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index ee678c1..480569f 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -1195,7 +1195,7 @@ void Menu::clearItem(int index, bool clear) { int sbl = index / menu.persub, i = index - (sbl * menu.persub); unsigned int item_w = menu.item_w, item_h = theme().itemHeight(); int item_x = (sbl * item_w), item_y = (i * item_h); - bool highlight = (index == m_active_index); + bool highlight = (index == m_active_index && isItemSelectable(index)); // don't highlight if moving, doesn't work with alpha on if (highlight && !m_moving) { -- cgit v0.11.2