From c04563734e0482bd10045c70d9d85177e5448143 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 24 Oct 2022 12:25:36 +0100 Subject: Rework candidate finding on close window --- src/layout/IHyprLayout.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/layout/IHyprLayout.hpp') diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index b084e05f..9116212c 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -123,10 +123,22 @@ public: */ virtual std::string getLayoutName() = 0; + /* + Called for getting the next candidate for a focus + */ + virtual CWindow* getNextWindowCandidate(CWindow*); + + /* + Internal: called when window focus changes + */ + virtual void onWindowFocusChange(CWindow*); + private: Vector2D m_vBeginDragXY; Vector2D m_vLastDragXY; Vector2D m_vBeginDragPositionXY; Vector2D m_vBeginDragSizeXY; int m_iGrabbedCorner = 0; + + CWindow* m_pLastTiledWindow = nullptr; }; -- cgit v1.2.3