diff options
author | rathnor <rathnor> | 2003-07-21 02:45:27 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-21 02:45:27 (GMT) |
commit | 370a9d474475d708f03795665d915f314f1665fa (patch) | |
tree | 4387c04b6df7caa238a72b3e5f5606cb568eb573 | |
parent | 037bd174bfb107fef4657c949ce49c188090f3e7 (diff) | |
download | fluxbox-370a9d474475d708f03795665d915f314f1665fa.zip fluxbox-370a9d474475d708f03795665d915f314f1665fa.tar.bz2 |
fix little bug that highlighted items that went disabled after selected
-rw-r--r-- | src/FbTk/Menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index ee7c231..f4e9340 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Menu.cc,v 1.31 2003/07/20 10:41:56 rathnor Exp $ | 25 | // $Id: Menu.cc,v 1.32 2003/07/21 02:45:27 rathnor Exp $ |
26 | 26 | ||
27 | //use GNU extensions | 27 | //use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -542,7 +542,7 @@ void Menu::update(int active_index) { | |||
542 | drawItem(i, true, true, false); | 542 | drawItem(i, true, true, false); |
543 | drawSubmenu(i); | 543 | drawSubmenu(i); |
544 | } else | 544 | } else |
545 | drawItem(i, (i == active_index), true, false); | 545 | drawItem(i, (i == active_index && isItemEnabled(i)), true, false); |
546 | } | 546 | } |
547 | 547 | ||
548 | if (m_parent && visible) | 548 | if (m_parent && visible) |