aboutsummaryrefslogtreecommitdiff
path: root/src/Workspacemenu.cc
diff options
context:
space:
mode:
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