Properly reload compositing settings on reconfigure.
svn path=/trunk/KDE/kdebase/workspace/; revision=716806
This commit is contained in:
parent
aa26125635
commit
8985ca0b7f
3 changed files with 6 additions and 6 deletions
|
@ -66,11 +66,6 @@ namespace KWin
|
||||||
void Workspace::setupCompositing()
|
void Workspace::setupCompositing()
|
||||||
{
|
{
|
||||||
#if defined( HAVE_XCOMPOSITE ) && defined( HAVE_XDAMAGE )
|
#if defined( HAVE_XCOMPOSITE ) && defined( HAVE_XDAMAGE )
|
||||||
// Driver-specific config detection
|
|
||||||
CompositingPrefs prefs;
|
|
||||||
prefs.detect();
|
|
||||||
options->reloadCompositingSettings( prefs );
|
|
||||||
|
|
||||||
if( !options->useCompositing )
|
if( !options->useCompositing )
|
||||||
{
|
{
|
||||||
kDebug( 1212 ) << "Compositing is turned off in options";
|
kDebug( 1212 ) << "Compositing is turned off in options";
|
||||||
|
|
|
@ -201,6 +201,11 @@ unsigned long Options::updateSettings()
|
||||||
// QToolTip::setGloballyEnabled( d->show_tooltips );
|
// QToolTip::setGloballyEnabled( d->show_tooltips );
|
||||||
// KDE4 this probably needs to be done manually in clients
|
// KDE4 this probably needs to be done manually in clients
|
||||||
|
|
||||||
|
// Driver-specific config detection
|
||||||
|
CompositingPrefs prefs;
|
||||||
|
prefs.detect();
|
||||||
|
reloadCompositingSettings( prefs );
|
||||||
|
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ class Options : public KDecorationOptions
|
||||||
~Options();
|
~Options();
|
||||||
|
|
||||||
virtual unsigned long updateSettings();
|
virtual unsigned long updateSettings();
|
||||||
void reloadCompositingSettings(const CompositingPrefs& prefs);
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Different focus policies:
|
Different focus policies:
|
||||||
|
@ -339,6 +338,7 @@ class Options : public KDecorationOptions
|
||||||
QStringList ignoreFocusStealingClasses;
|
QStringList ignoreFocusStealingClasses;
|
||||||
|
|
||||||
MouseCommand wheelToMouseCommand( MouseWheelCommand com, int delta );
|
MouseCommand wheelToMouseCommand( MouseWheelCommand com, int delta );
|
||||||
|
void reloadCompositingSettings(const CompositingPrefs& prefs);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Options* options;
|
extern Options* options;
|
||||||
|
|
Loading…
Reference in a new issue