mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 06:18:05 +02:00
config/legacy: translate default window args properly
fixes some dispatchers
This commit is contained in:
parent
0e64d9e2b6
commit
99a6c5f2e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue