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)