fix minor menu separator highlight issue

This commit is contained in:
simonb 2006-08-14 13:45:05 +00:00
parent 5b50243881
commit b1b8bd12ae
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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) {