diff --git a/autotests/test_window_paint_data.cpp b/autotests/test_window_paint_data.cpp index c004842eab..82f06dc258 100644 --- a/autotests/test_window_paint_data.cpp +++ b/autotests/test_window_paint_data.cpp @@ -104,6 +104,9 @@ public: QRect bufferGeometry() const override { return QRect(); } + QRect clientGeometry() const override { + return QRect(); + } int screen() const override { return 0; } diff --git a/src/effects.cpp b/src/effects.cpp index 9ae1af2963..ffa7bc8210 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1893,6 +1893,7 @@ TOPLEVEL_HELPER(int, screen, screen) TOPLEVEL_HELPER(QRect, geometry, frameGeometry) TOPLEVEL_HELPER(QRect, frameGeometry, frameGeometry) TOPLEVEL_HELPER(QRect, bufferGeometry, bufferGeometry) +TOPLEVEL_HELPER(QRect, clientGeometry, clientGeometry) TOPLEVEL_HELPER(QRect, expandedGeometry, visibleGeometry) TOPLEVEL_HELPER(QRect, rect, rect) TOPLEVEL_HELPER(int, desktop, desktop) diff --git a/src/effects.h b/src/effects.h index e601050a5b..fc826d1db8 100644 --- a/src/effects.h +++ b/src/effects.h @@ -421,6 +421,7 @@ public: QRect geometry() const override; QRect frameGeometry() const override; QRect bufferGeometry() const override; + QRect clientGeometry() const override; QString caption() const override; diff --git a/src/libkwineffects/kwineffects.h b/src/libkwineffects/kwineffects.h index 7e3b2b0615..9dc00fba33 100644 --- a/src/libkwineffects/kwineffects.h +++ b/src/libkwineffects/kwineffects.h @@ -2276,6 +2276,7 @@ public: * @since 5.18 */ virtual QRect bufferGeometry() const = 0; + virtual QRect clientGeometry() const = 0; /** * Geometry of the window including decoration and potentially shadows. * May be different from geometry() if the window has a shadow.