From 9abfa9efc627df0765652f862887626af02b5ae1 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Sun, 29 Oct 2023 20:14:47 +0000 Subject: input: handle mouse on decorations (#3560) --- src/render/decorations/IHyprWindowDecoration.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/decorations/IHyprWindowDecoration.hpp') diff --git a/src/render/decorations/IHyprWindowDecoration.hpp b/src/render/decorations/IHyprWindowDecoration.hpp index fec7305d..eadc486f 100644 --- a/src/render/decorations/IHyprWindowDecoration.hpp +++ b/src/render/decorations/IHyprWindowDecoration.hpp @@ -39,6 +39,12 @@ class IHyprWindowDecoration { virtual bool allowsInput(); + 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*); + private: CWindow* m_pWindow = nullptr; }; -- cgit v1.2.3