input: handle mouse on decorations (#3560)

This commit is contained in:
MightyPlaza 2023-10-29 20:14:47 +00:00 committed by GitHub
parent 7a5234a0cc
commit 9abfa9efc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 165 additions and 65 deletions

View file

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