[libkwineffects] Add windowId to EffectWindow
My use case is integrating with a system that tracks window properties based on the windowId. This allows the effect to do window-specific things.
This commit is contained in:
parent
20dc60eda8
commit
251bbbb5b5
3 changed files with 7 additions and 0 deletions
|
@ -1833,6 +1833,7 @@ TOPLEVEL_HELPER(KWaylandServer::SurfaceInterface *, surface, surface)
|
|||
TOPLEVEL_HELPER(bool, isPopupWindow, isPopupWindow)
|
||||
TOPLEVEL_HELPER(bool, isOutline, isOutline)
|
||||
TOPLEVEL_HELPER(pid_t, pid, pid)
|
||||
TOPLEVEL_HELPER(qlonglong, windowId, windowId)
|
||||
|
||||
#undef TOPLEVEL_HELPER
|
||||
|
||||
|
|
|
@ -454,6 +454,7 @@ public:
|
|||
bool isX11Client() const override;
|
||||
|
||||
pid_t pid() const override;
|
||||
qlonglong windowId() const override;
|
||||
|
||||
QRect decorationInnerRect() const override;
|
||||
QByteArray readProperty(long atom, long type, int format) const override;
|
||||
|
|
|
@ -2439,6 +2439,11 @@ public:
|
|||
*/
|
||||
virtual pid_t pid() const = 0;
|
||||
|
||||
/**
|
||||
* @since 5.21
|
||||
*/
|
||||
virtual qlonglong windowId() const = 0;
|
||||
|
||||
/**
|
||||
* Can be used to by effects to store arbitrary data in the EffectWindow.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue