Read number of desktops from kwinrc - a first step towards configurability

svn path=/trunk/kdebase/kwin/; revision=35755
This commit is contained in:
David Faure 1999-12-03 18:51:22 +00:00
parent 64acd7375d
commit 0274e04914

View file

@ -155,7 +155,11 @@ void Workspace::init()
popup = 0; popup = 0;
desk_popup = 0; desk_popup = 0;
popup_client = 0; popup_client = 0;
setNumberOfDesktops( 4 ); // TODO options KConfig* config = KGlobal::config();
if (!config->hasKey("NumberOfDesktops"))
config->writeEntry("NumberOfDesktops", 4);
int number_of_desktops = config->readNumEntry("NumberOfDesktops");
setNumberOfDesktops( number_of_desktops );
setCurrentDesktop( 1 ); setCurrentDesktop( 1 );
unsigned int i, nwins; unsigned int i, nwins;