use Theme consistently for compositing check

This commit is contained in:
Aaron Seigo 2011-12-08 12:53:25 +01:00
parent 7aa9da0039
commit 50b42f052b

View File

@ -751,7 +751,7 @@ void Dialog::animatedHide(Plasma::Direction direction)
return; return;
} }
if (!KWindowSystem::compositingActive()) { if (!Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) {
hide(); hide();
return; return;
} }
@ -780,7 +780,7 @@ void Dialog::animatedHide(Plasma::Direction direction)
void Dialog::animatedShow(Plasma::Direction direction) void Dialog::animatedShow(Plasma::Direction direction)
{ {
if (!KWindowSystem::compositingActive()) { if (!Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) {
show(); show();
return; return;
} }
@ -804,7 +804,7 @@ void Dialog::animatedShow(Plasma::Direction direction)
break; break;
} }
if (KWindowSystem::compositingActive()) { if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) {
Plasma::WindowEffects::slideWindow(this, location); Plasma::WindowEffects::slideWindow(this, location);
} }