aboutsummaryrefslogtreecommitdiff
path: root/src/Workspacemenu.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-09 23:20:40 (GMT)
committerfluxgen <fluxgen>2002-04-09 23:20:40 (GMT)
commit46e9b6e5462af0a05808c4d636526c04067a3623 (patch)
treebfd9ac1028247c732af84291e56a20391d8641ac /src/Workspacemenu.cc
parentbd7951bcdad7e1c4dd6b5ff267cb85fc8cbf6d7e (diff)
downloadfluxbox-46e9b6e5462af0a05808c4d636526c04067a3623.zip
fluxbox-46e9b6e5462af0a05808c4d636526c04067a3623.tar.bz2
update from Workspace changes
Diffstat (limited to 'src/Workspacemenu.cc')
-rw-r--r--src/Workspacemenu.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc
index ba4ff0a..a9b0b52 100644
--- a/src/Workspacemenu.cc
+++ b/src/Workspacemenu.cc
@@ -21,6 +21,8 @@
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
23 23
24// $Id: Workspacemenu.cc,v 1.6 2002/04/09 23:19:17 fluxgen Exp $
25
24//use GNU extension 26//use GNU extension
25#ifndef _GNU_SOURCE 27#ifndef _GNU_SOURCE
26#define _GNU_SOURCE 28#define _GNU_SOURCE
@@ -63,7 +65,7 @@ void Workspacemenu::itemSelected(int button, unsigned int index) {
63 screen->addWorkspace(); 65 screen->addWorkspace();
64 else if (index == 1) 66 else if (index == 1)
65 screen->removeLastWorkspace(); 67 screen->removeLastWorkspace();
66 else if ((screen->getCurrentWorkspace()->getWorkspaceID() != 68 else if ((screen->getCurrentWorkspace()->workspaceID() !=
67 (index - 2)) && ((index - 2) < screen->getCount())) 69 (index - 2)) && ((index - 2) < screen->getCount()))
68 screen->changeWorkspaceID(index - 2); 70 screen->changeWorkspaceID(index - 2);
69 71