diff options
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r-- | src/layout/IHyprLayout.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
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 |