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); }