diff --git a/screenedge.cpp b/screenedge.cpp index e612461559..8c00f3f26e 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -49,10 +49,8 @@ namespace KWin { ScreenEdge::ScreenEdge() : QObject(NULL) , m_screenEdgeWindows(ELECTRIC_COUNT, None) + , m_screenEdgeReserved(ELECTRIC_COUNT, 0) { - for (int i = 0; i < ELECTRIC_COUNT; ++i) { - m_screenEdgeReserved[i] = 0; - } } ScreenEdge::~ScreenEdge() diff --git a/screenedge.h b/screenedge.h index 006866d65c..5a218984f4 100644 --- a/screenedge.h +++ b/screenedge.h @@ -120,6 +120,7 @@ private: void switchDesktop(ElectricBorder border, const QPoint& pos); QVector< Window > m_screenEdgeWindows; + QVector< int > m_screenEdgeReserved; // Corners/edges used by something ElectricBorder m_currentScreenEdge; int m_screenEdgeLeft; int m_screenEdgeRight; @@ -129,7 +130,6 @@ private: Time m_screenEdgeTimeLast; Time m_screenEdgeTimeLastTrigger; QPoint m_screenEdgePushPoint; - int m_screenEdgeReserved[ELECTRIC_COUNT]; // Corners/edges used by something }; } #endif // KWIN_SCREENEDGE_H