From 98fbbafef78057c818fb02b15c27e38ad2f5b5bc Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:56:07 +0100 Subject: config/errors: Report and categorize errors properly for actions (#14192) Makes all errors categorized, some not displayed, some displayed. All errors can be obtained after hl.dispatch() --- src/layout/algorithm/ModeAlgorithm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/algorithm/ModeAlgorithm.hpp') diff --git a/src/layout/algorithm/ModeAlgorithm.hpp b/src/layout/algorithm/ModeAlgorithm.hpp index 0fedc3da..e53d4391 100644 --- a/src/layout/algorithm/ModeAlgorithm.hpp +++ b/src/layout/algorithm/ModeAlgorithm.hpp @@ -39,7 +39,7 @@ namespace Layout { virtual void moveTargetInDirection(SP t, Math::eDirection dir, bool silent) = 0; // optional: handle layout messages - virtual std::expected layoutMsg(const std::string_view& sv); + virtual Config::ErrorResult layoutMsg(const std::string_view& sv); // optional: predict new window's size virtual std::optional predictSizeForNewTarget(); @@ -54,4 +54,4 @@ namespace Layout { friend class Layout::CAlgorithm; }; -} \ No newline at end of file +} -- cgit v1.2.3