diff options
| author | dranull <150595692+dranull@users.noreply.github.com> | 2023-12-28 22:54:41 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-28 23:54:41 +0100 |
| commit | 8321d6be46ed2df7dfe7ec142716a7d1a50d2d5e (patch) | |
| tree | 8381a98e72b0ae839847da7ac7a122027317b6bf /src/render/decorations/IHyprWindowDecoration.hpp | |
| parent | cedf5f1fca057351d85560ff72bf2cc6cc609755 (diff) | |
internal: Unify input handling on decorations (#4280)
* Unify input handling on decorations
* Make input methods private
* Optional data
Diffstat (limited to 'src/render/decorations/IHyprWindowDecoration.hpp')
| -rw-r--r-- | src/render/decorations/IHyprWindowDecoration.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/render/decorations/IHyprWindowDecoration.hpp b/src/render/decorations/IHyprWindowDecoration.hpp index 2203304b..b457adf4 100644 --- a/src/render/decorations/IHyprWindowDecoration.hpp +++ b/src/render/decorations/IHyprWindowDecoration.hpp @@ -2,6 +2,7 @@ #include "../../defines.hpp" #include "../../helpers/Region.hpp" +#include "../../managers/input/InputManager.hpp" #include "DecorationPositioner.hpp" enum eDecorationType { @@ -46,11 +47,7 @@ class IHyprWindowDecoration { virtual void damageEntire() = 0; // should be ignored by non-absolute decos - virtual void onBeginWindowDragOnDeco(const Vector2D&); // called when the user calls the "movewindow" mouse dispatcher on the deco - - virtual bool onEndWindowDragOnDeco(CWindow* pDraggedWindow, const Vector2D&); // returns true if the window should be placed by the layout - - virtual void onMouseButtonOnDeco(const Vector2D&, wlr_pointer_button_event*); + virtual bool onInputOnDeco(const eInputType, const Vector2D&, std::any = {}); virtual eDecorationLayer getDecorationLayer(); |
