From 6d59623f8f0936b969f1587dfacaa8a4363eef9f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 5 Dec 1999 14:47:12 +0000 Subject: [PATCH] - make WorkSpace::numberOfDesktops() not return the hardcoded "4" but instead the real number of desktops (fixes the desktop selection in the popup menu) svn path=/trunk/kdebase/kwin/; revision=35874 --- workspace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.h b/workspace.h index f03a981f03..df9dc3c7f3 100644 --- a/workspace.h +++ b/workspace.h @@ -222,7 +222,7 @@ inline int Workspace::currentDesktop() const */ inline int Workspace::numberOfDesktops() const { - return 4; + return number_of_desktops; } #endif