From 99a6c5f2e2b31ef73d289e4e27de02faa118a70f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 26 Apr 2026 23:18:26 +0100 Subject: [PATCH] config/legacy: translate default window args properly fixes some dispatchers --- src/config/legacy/DispatcherTranslator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/legacy/DispatcherTranslator.cpp b/src/config/legacy/DispatcherTranslator.cpp index c87789927..68719dc8f 100644 --- a/src/config/legacy/DispatcherTranslator.cpp +++ b/src/config/legacy/DispatcherTranslator.cpp @@ -39,9 +39,9 @@ static SDispatchResult wrap(ActionResult res) { } // helper: resolve window from regex string, or focused if empty/active -static PHLWINDOW windowFromArg(const std::string& arg) { +static std::optional windowFromArg(const std::string& arg) { if (arg.empty() || arg == "active") - return nullptr; // will use xtract(nullopt) -> focused window + return std::nullopt; // will use xtract(nullopt) -> focused window return g_pCompositor->getWindowByRegex(arg); }