diff --git a/src/libkwineffects/kwineffects.h b/src/libkwineffects/kwineffects.h index fa4be72e4d..8929a6ab4a 100644 --- a/src/libkwineffects/kwineffects.h +++ b/src/libkwineffects/kwineffects.h @@ -2930,6 +2930,7 @@ public: double right() const; double top() const; double bottom() const; + QRectF bounds() const; private: friend class WindowQuadList; @@ -4091,6 +4092,11 @@ inline double WindowQuad::bottom() const return qMax(verts[0].py, qMax(verts[1].py, qMax(verts[2].py, verts[3].py))); } +inline QRectF WindowQuad::bounds() const +{ + return QRectF(QPointF(left(), top()), QPointF(right(), bottom())); +} + /*************************************************************** Motion ***************************************************************/