mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: enable complex animation effects by default if compositing manager is running
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0f0c306927
commit
409253ab09
1 changed files with 6 additions and 4 deletions
|
@ -654,10 +654,12 @@ KGlobalSettings::GraphicEffects KGlobalSettings::graphicEffectsLevel()
|
|||
|
||||
KGlobalSettings::GraphicEffects KGlobalSettings::graphicEffectsLevelDefault()
|
||||
{
|
||||
// For now, let always enable animations by default. The plan is to make
|
||||
// this code a bit smarter. (ereslibre)
|
||||
|
||||
return SimpleAnimationEffects;
|
||||
KGlobalSettings::GraphicEffects result = KGlobalSettings::SimpleAnimationEffects;
|
||||
// NOTE: Katie's fade effect requires compositor and it is enabled if complex effects are
|
||||
if (QX11Info::isCompositingManagerRunning()) {
|
||||
result |= KGlobalSettings::ComplexAnimationEffects;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool KGlobalSettings::showFilePreview(const KUrl &url)
|
||||
|
|
Loading…
Add table
Reference in a new issue