kwineffects: Add client geometry property
This property can be useful for the screenshot effect.icc-effect-5.26.4
parent
2742e5b422
commit
b814b3c985
|
@ -104,6 +104,9 @@ public:
|
|||
QRect bufferGeometry() const override {
|
||||
return QRect();
|
||||
}
|
||||
QRect clientGeometry() const override {
|
||||
return QRect();
|
||||
}
|
||||
int screen() const override {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue