oops, added group, and tried a sync() in destructor, but since we have
no proper logout... Anyway, nice to have 6 desktops again :) svn path=/trunk/kdebase/kwin/; revision=35756
This commit is contained in:
parent
0274e04914
commit
410a80a76d
1 changed files with 3 additions and 1 deletions
|
@ -156,8 +156,9 @@ void Workspace::init()
|
|||
desk_popup = 0;
|
||||
popup_client = 0;
|
||||
KConfig* config = KGlobal::config();
|
||||
config->setGroup("Desktops");
|
||||
if (!config->hasKey("NumberOfDesktops"))
|
||||
config->writeEntry("NumberOfDesktops", 4);
|
||||
config->writeEntry("NumberOfDesktops", 4);
|
||||
int number_of_desktops = config->readNumEntry("NumberOfDesktops");
|
||||
setNumberOfDesktops( number_of_desktops );
|
||||
setCurrentDesktop( 1 );
|
||||
|
@ -225,6 +226,7 @@ Workspace::~Workspace()
|
|||
delete keys;
|
||||
if ( root == qt_xrootwin() )
|
||||
XDeleteProperty(qt_xdisplay(), qt_xrootwin(), atoms->kwm_running);
|
||||
KGlobal::config()->sync();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue