aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceMenu.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-09-22 05:32:02 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-09-22 05:32:02 (GMT)
commit3f33657fb721645292f798480e9e0b46d64aedf8 (patch)
tree71f3e5d97e984bbdf69ae6c3a3cf9fc72d060a69 /src/WorkspaceMenu.cc
parented53f3c623e7c3ae35672b33ae3b52759dc1a6ed (diff)
downloadfluxbox-3f33657fb721645292f798480e9e0b46d64aedf8.zip
fluxbox-3f33657fb721645292f798480e9e0b46d64aedf8.tar.bz2
fix active menu item when inserting or removing other items
Diffstat (limited to 'src/WorkspaceMenu.cc')
-rw-r--r--src/WorkspaceMenu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorkspaceMenu.cc b/src/WorkspaceMenu.cc
index c343920..f03dd3c 100644
--- a/src/WorkspaceMenu.cc
+++ b/src/WorkspaceMenu.cc
@@ -80,7 +80,7 @@ void WorkspaceMenu::workspaceInfoChanged( BScreen& screen ) {
80 insert(mb_menu, workspace + IDX_AFTER_ICONS); 80 insert(mb_menu, workspace + IDX_AFTER_ICONS);
81 } 81 }
82 82
83 updateMenu(-1); 83 updateMenu();
84} 84}
85 85
86void WorkspaceMenu::workspaceChanged(BScreen& screen) { 86void WorkspaceMenu::workspaceChanged(BScreen& screen) {
@@ -89,12 +89,12 @@ void WorkspaceMenu::workspaceChanged(BScreen& screen) {
89 item = find(i + IDX_AFTER_ICONS); 89 item = find(i + IDX_AFTER_ICONS);
90 if (item && item->isSelected()) { 90 if (item && item->isSelected()) {
91 setItemSelected(i + IDX_AFTER_ICONS, false); 91 setItemSelected(i + IDX_AFTER_ICONS, false);
92 updateMenu(i + IDX_AFTER_ICONS); 92 updateMenu();
93 break; 93 break;
94 } 94 }
95 } 95 }
96 setItemSelected(screen.currentWorkspace()->workspaceID() + IDX_AFTER_ICONS, true); 96 setItemSelected(screen.currentWorkspace()->workspaceID() + IDX_AFTER_ICONS, true);
97 updateMenu(screen.currentWorkspace()->workspaceID() + IDX_AFTER_ICONS); 97 updateMenu();
98} 98}
99 99
100void WorkspaceMenu::init(BScreen &screen) { 100void WorkspaceMenu::init(BScreen &screen) {