summaryrefslogtreecommitdiffstats
path: root/kdesktop/krootwm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kdesktop/krootwm.cc')
-rw-r--r--kdesktop/krootwm.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/kdesktop/krootwm.cc b/kdesktop/krootwm.cc
index 8769de363..95b0a3cb7 100644
--- a/kdesktop/krootwm.cc
+++ b/kdesktop/krootwm.cc
@@ -522,6 +522,20 @@ void KRootWm::slotToggleAutoAlign( bool b )
KDesktopSettings::setAutoLineUpIcons( b );
KDesktopSettings::writeConfig();
+ // Also save it globally...
+ int desktop = KApplication::desktop()->primaryScreen();
+ TQCString cfilename;
+ if (desktop == 0)
+ cfilename = "kdesktoprc";
+ else
+ cfilename.sprintf("kdesktop-screen-%drc", desktop);
+
+ KConfig *kdg_config = new KConfig(cfilename, false, false);
+ kdg_config->setGroup( "General" );
+ kdg_config->writeEntry( "AutoLineUpIcons", autoLineupIconsBox->isChecked() );
+ kdg_config->sync();
+ delete kdg_config;
+
// Auto line-up icons
m_pDesktop->iconView()->setAutoAlign( b );
}