From 50f978e518c83872a25a47b5ddde310ec24ac203 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 16 May 2022 17:37:46 +0200 Subject: Added togglesplit dispatcher --- src/layout/IHyprLayout.hpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/layout/IHyprLayout.hpp') diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index 2f569b6e..71f30e3d 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -8,6 +8,10 @@ struct SWindowRenderLayoutHints { CColor borderColor; }; +struct SLayoutMessageHeader { + CWindow* pWindow = nullptr; +}; + interface IHyprLayout { public: @@ -69,16 +73,10 @@ public: virtual void fullscreenRequestForWindow(CWindow*) = 0; /* - Called when the user requests a window to be made into a group, - or when they want the group to be released. - Everything else is free to interpret by the layout. - */ - virtual void toggleWindowGroup(CWindow*) = 0; - - /* - Called when the user requests a group window switch + Called when a dispatcher requests a custom message + The layout is free to ignore. */ - virtual void switchGroupWindow(CWindow*) = 0; + virtual void layoutMessage(SLayoutMessageHeader, std::string) = 0; /* Required to be handled, but may return just SWindowRenderLayoutHints() -- cgit v1.2.3