Repair a bit of damage
svn path=/trunk/kdebase/kcontrol/; revision=207610
This commit is contained in:
parent
19eddb8180
commit
b14e712158
1 changed files with 5 additions and 4 deletions
|
@ -191,18 +191,19 @@ void Options::reload()
|
|||
|
||||
rollOverDesktops = config->readBoolEntry("RollOverDesktops", TRUE);
|
||||
|
||||
KConfig *gc = KGlobal::config();
|
||||
KConfig *gc = new KConfig("kdeglobals", false, false);
|
||||
bool isVirtual = KApplication::desktop()->isVirtualDesktop();
|
||||
gc->setGroup("Windows");
|
||||
xineramaEnabled = gc->readBoolEntry ("XineramaEnabled", isVirtual ) &&
|
||||
isVirtual;
|
||||
if (xineramaEnabled) {
|
||||
xineramaPlacementEnabled = config->readBoolEntry ("XineramaPlacementEnabled", FALSE);
|
||||
xineramaMovementEnabled = config->readBoolEntry ("XineramaMovementEnabled", FALSE);
|
||||
xineramaMaximizeEnabled = config->readBoolEntry ("XineramaMaximizeEnabled", FALSE);
|
||||
xineramaPlacementEnabled = gc->readBoolEntry ("XineramaPlacementEnabled", FALSE);
|
||||
xineramaMovementEnabled = gc->readBoolEntry ("XineramaMovementEnabled", FALSE);
|
||||
xineramaMaximizeEnabled = gc->readBoolEntry ("XineramaMaximizeEnabled", FALSE);
|
||||
} else {
|
||||
xineramaPlacementEnabled = xineramaMovementEnabled = xineramaMaximizeEnabled = false;
|
||||
}
|
||||
delete gc;
|
||||
|
||||
val = config->readEntry("Placement","Smart");
|
||||
if (val == "Smart") placement = Smart;
|
||||
|
|
Loading…
Reference in a new issue