From 410a80a76da3a76f0b6e13484e83298f75a00a5f Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 3 Dec 1999 19:04:03 +0000 Subject: [PATCH] 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 --- workspace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 251b9bc4b0..89087e6936 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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(); }