From 79af33c136d40d2b361980270a08b5d7a96f0603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 29 Jan 2013 08:28:48 +0100 Subject: [PATCH] Cleanup in SnapHelper effect * use <> includes * remove commented and unused code --- effects/snaphelper/snaphelper.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/effects/snaphelper/snaphelper.cpp b/effects/snaphelper/snaphelper.cpp index 2f7f0ff14d..7ceaa4193c 100644 --- a/effects/snaphelper/snaphelper.cpp +++ b/effects/snaphelper/snaphelper.cpp @@ -20,9 +20,9 @@ along with this program. If not, see . #include "snaphelper.h" -#include "kwinglutils.h" +#include #ifdef KWIN_HAVE_XRENDER_COMPOSITING -#include "kwinxrenderutils.h" +#include #include #endif @@ -41,20 +41,10 @@ SnapHelperEffect::SnapHelperEffect() connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*))); connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*))); connect(effects, SIGNAL(windowGeometryShapeChanged(KWin::EffectWindow*, const QRect&)), this, SLOT(slotWindowResized(KWin::EffectWindow*, const QRect&))); - - /*if ( effects->compositingType() == XRenderCompositing ) - { - XGCValues gcattr; - // TODO: Foreground color - gcattr.line_width = 4; - m_gc = XCreateGC( display(), rootWindow(), GCLineWidth, &gcattr ); - }*/ } SnapHelperEffect::~SnapHelperEffect() { - //if ( effects->compositingType() == XRenderCompositing ) - // XFreeGC( display(), m_gc ); } void SnapHelperEffect::reconfigure(ReconfigureFlags)