Read number of desktops from kwinrc - a first step towards configurability
svn path=/trunk/kdebase/kwin/; revision=35755
This commit is contained in:
parent
64acd7375d
commit
0274e04914
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue