use Theme consistently for compositing check
This commit is contained in:
parent
7aa9da0039
commit
50b42f052b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user