summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/legacy/DispatcherTranslator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/legacy/DispatcherTranslator.cpp b/src/config/legacy/DispatcherTranslator.cpp
index c8778992..68719dc8 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<PHLWINDOW> 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);
}