diff options
author | simonb <simonb> | 2006-08-14 13:45:05 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-08-14 13:45:05 (GMT) |
commit | b1b8bd12aefadf6d9c30bd90e61ee3144218ae0a (patch) | |
tree | 7194686afcec003ed2fb27d20a30dd583985cd73 | |
parent | 5b5024388189288aeb033312207fc5f6b28668d1 (diff) | |
download | fluxbox-b1b8bd12aefadf6d9c30bd90e61ee3144218ae0a.zip fluxbox-b1b8bd12aefadf6d9c30bd90e61ee3144218ae0a.tar.bz2 |
fix minor menu separator highlight issue
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/FbTk/Menu.cc | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.0rc3: | 2 | Changes for 1.0rc3: |
3 | *06/08/14: | ||
4 | * Fix minor menu separator highlight issue (Simon) | ||
5 | FbTk/Menu.cc | ||
3 | *06/08/12: | 6 | *06/08/12: |
4 | * Fix placement of restored fullscreen windows (Mark) | 7 | * Fix placement of restored fullscreen windows (Mark) |
5 | Window.cc | 8 | 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) { | |||
1195 | int sbl = index / menu.persub, i = index - (sbl * menu.persub); | 1195 | int sbl = index / menu.persub, i = index - (sbl * menu.persub); |
1196 | unsigned int item_w = menu.item_w, item_h = theme().itemHeight(); | 1196 | unsigned int item_w = menu.item_w, item_h = theme().itemHeight(); |
1197 | int item_x = (sbl * item_w), item_y = (i * item_h); | 1197 | int item_x = (sbl * item_w), item_y = (i * item_h); |
1198 | bool highlight = (index == m_active_index); | 1198 | bool highlight = (index == m_active_index && isItemSelectable(index)); |
1199 | 1199 | ||
1200 | // don't highlight if moving, doesn't work with alpha on | 1200 | // don't highlight if moving, doesn't work with alpha on |
1201 | if (highlight && !m_moving) { | 1201 | if (highlight && !m_moving) { |