kwineffects: Add client geometry property

This property can be useful for the screenshot effect.
icc-effect-5.26.4
Vlad Zahorodnii 2021-05-28 11:05:28 +03:00
parent 2742e5b422
commit b814b3c985
4 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ public:
QRect bufferGeometry() const override {
return QRect();
}
QRect clientGeometry() const override {
return QRect();
}
int screen() const override {
return 0;
}

View File

@ -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)

View File

@ -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;

View File

@ -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.