From bdf1c1619529792e95cd6cf2aa1d68e51db76252 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 28 May 2022 20:46:20 +0200 Subject: Added IHyprWindowDecoration and Group Bars --- src/layout/IHyprLayout.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/layout/IHyprLayout.hpp') diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index 71f30e3d..01e3e04a 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -74,9 +74,10 @@ public: /* Called when a dispatcher requests a custom message - The layout is free to ignore. + The layout is free to ignore. + std::any is the reply. Can be empty. */ - virtual void layoutMessage(SLayoutMessageHeader, std::string) = 0; + virtual std::any layoutMessage(SLayoutMessageHeader, std::string) = 0; /* Required to be handled, but may return just SWindowRenderLayoutHints() @@ -96,4 +97,9 @@ public: on a window */ virtual void alterSplitRatioBy(CWindow*, float) = 0; + + /* + Called when something wants the current layout's name + */ + virtual std::string getLayoutName() = 0; }; \ No newline at end of file -- cgit v1.2.3