From 50b42f052b27e9d6be5b94d4f0ef29939bd720a9 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 8 Dec 2011 12:53:25 +0100 Subject: [PATCH] use Theme consistently for compositing check --- dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index 8668d656b..5040b080e 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -751,7 +751,7 @@ void Dialog::animatedHide(Plasma::Direction direction) return; } - if (!KWindowSystem::compositingActive()) { + if (!Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { hide(); return; } @@ -780,7 +780,7 @@ void Dialog::animatedHide(Plasma::Direction direction) void Dialog::animatedShow(Plasma::Direction direction) { - if (!KWindowSystem::compositingActive()) { + if (!Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { show(); return; } @@ -804,7 +804,7 @@ void Dialog::animatedShow(Plasma::Direction direction) break; } - if (KWindowSystem::compositingActive()) { + if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { Plasma::WindowEffects::slideWindow(this, location); }