Electric borders are not a bool setting.
svn path=/branches/work/kwin_composite/; revision=649954
This commit is contained in:
parent
faa14f2fe0
commit
41a32a042b
1 changed files with 14 additions and 24 deletions
|
@ -39,7 +39,6 @@
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <kmessagebox.h>
|
#include <kmessagebox.h>
|
||||||
|
|
||||||
#include <qlabel.h>
|
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <kcolorbutton.h>
|
#include <kcolorbutton.h>
|
||||||
#include <kconfig.h>
|
#include <kconfig.h>
|
||||||
|
@ -57,6 +56,7 @@
|
||||||
|
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
|
|
||||||
// kwin config keywords
|
// kwin config keywords
|
||||||
#define KWIN_FOCUS "FocusPolicy"
|
#define KWIN_FOCUS "FocusPolicy"
|
||||||
#define KWIN_PLACEMENT "Placement"
|
#define KWIN_PLACEMENT "Placement"
|
||||||
|
@ -433,6 +433,7 @@ void KFocusConfig::load( void )
|
||||||
|
|
||||||
setTraverseAll( config->group("TabBox").readEntry(KWIN_TRAVERSE_ALL, false));
|
setTraverseAll( config->group("TabBox").readEntry(KWIN_TRAVERSE_ALL, false));
|
||||||
|
|
||||||
|
config->setGroup("Desktops");
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -486,13 +487,13 @@ void KFocusConfig::save( void )
|
||||||
|
|
||||||
config->group("TabBox").writeEntry( KWIN_TRAVERSE_ALL , traverseAll->isChecked());
|
config->group("TabBox").writeEntry( KWIN_TRAVERSE_ALL , traverseAll->isChecked());
|
||||||
|
|
||||||
|
config->setGroup("Desktops");
|
||||||
|
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
// Send signal to all kwin instances
|
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
||||||
QDBusMessage message =
|
kwin.call( "reconfigure" );
|
||||||
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
|
||||||
QDBusConnection::sessionBus().send(message);
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -718,11 +719,8 @@ void KAdvancedConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
// Send signal to all kwin instances
|
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
||||||
QDBusMessage message =
|
kwin.call( "reconfigure" );
|
||||||
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
|
||||||
QDBusConnection::sessionBus().send(message);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -1185,10 +1183,8 @@ void KMovingConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
// Send signal to all kwin instances
|
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
||||||
QDBusMessage message =
|
kwin.call( "reconfigure" );
|
||||||
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
|
||||||
QDBusConnection::sessionBus().send(message);
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
@ -1254,8 +1250,6 @@ KTranslucencyConfig::KTranslucencyConfig (bool _standAlone, KConfig *_config, co
|
||||||
"And if your GPU provides hardware-accelerated Xrender support (mainly nVidia cards):<br><br>"
|
"And if your GPU provides hardware-accelerated Xrender support (mainly nVidia cards):<br><br>"
|
||||||
"<i>Option \"RenderAccel\" \"true\"</i><br>"
|
"<i>Option \"RenderAccel\" \"true\"</i><br>"
|
||||||
"In <i>Section \"Device\"</i></qt>"), this);
|
"In <i>Section \"Device\"</i></qt>"), this);
|
||||||
label->setOpenExternalLinks(true);
|
|
||||||
label->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
|
|
||||||
lay->addWidget(label);
|
lay->addWidget(label);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1476,9 +1470,9 @@ void KTranslucencyConfig::load( void )
|
||||||
|
|
||||||
if (!kompmgrAvailable_)
|
if (!kompmgrAvailable_)
|
||||||
return;
|
return;
|
||||||
useTranslucency->setChecked(config->group("Notification Messages").readEntry("UseTranslucency", false));
|
|
||||||
|
|
||||||
KConfigGroup translucencyConfig(config, "Translucency");
|
KConfigGroup translucencyConfig(config, "Translucency");
|
||||||
|
useTranslucency->setChecked(translucencyConfig.readEntry("UseTranslucency", false));
|
||||||
activeWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentActiveWindows", false));
|
activeWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentActiveWindows", false));
|
||||||
inactiveWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentInactiveWindows", true));
|
inactiveWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentInactiveWindows", true));
|
||||||
movingWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentMovingWindows", false));
|
movingWindowTransparency->setChecked(translucencyConfig.readEntry("TranslucentMovingWindows", false));
|
||||||
|
@ -1540,9 +1534,8 @@ void KTranslucencyConfig::save( void )
|
||||||
{
|
{
|
||||||
if (!kompmgrAvailable_)
|
if (!kompmgrAvailable_)
|
||||||
return;
|
return;
|
||||||
config->group("Notification Messages").writeEntry("UseTranslucency",useTranslucency->isChecked());
|
|
||||||
|
|
||||||
KConfigGroup translucencyConfig(config, "Translucency");
|
KConfigGroup translucencyConfig(config, "Translucency");
|
||||||
|
translucencyConfig.writeEntry("UseTranslucency",useTranslucency->isChecked());
|
||||||
translucencyConfig.writeEntry("TranslucentActiveWindows",activeWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentActiveWindows",activeWindowTransparency->isChecked());
|
||||||
translucencyConfig.writeEntry("TranslucentInactiveWindows",inactiveWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentInactiveWindows",inactiveWindowTransparency->isChecked());
|
||||||
translucencyConfig.writeEntry("TranslucentMovingWindows",movingWindowTransparency->isChecked());
|
translucencyConfig.writeEntry("TranslucentMovingWindows",movingWindowTransparency->isChecked());
|
||||||
|
@ -1592,11 +1585,8 @@ void KTranslucencyConfig::save( void )
|
||||||
if (standAlone)
|
if (standAlone)
|
||||||
{
|
{
|
||||||
config->sync();
|
config->sync();
|
||||||
// Send signal to all kwin instances
|
QDBusInterface kwin( "org.kde.kwin", "/KWin", "org.kde.KWin" );
|
||||||
QDBusMessage message =
|
kwin.call( "reconfigure" );
|
||||||
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
|
||||||
QDBusConnection::sessionBus().send(message);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
emit KCModule::changed(false);
|
emit KCModule::changed(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue