mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 09:25:59 +01:00
swallow: check if swallow_regex doesn't exist (#8265)
Avoid to run CWindow::getSwallower() when `swallow_regex` doesn't exist in the user's config file.
This commit is contained in:
parent
2c481202ef
commit
d49a1334a8
1 changed files with 1 additions and 1 deletions
|
@ -1535,7 +1535,7 @@ PHLWINDOW CWindow::getSwallower() {
|
||||||
static auto PSWALLOWEXREGEX = CConfigValue<std::string>("misc:swallow_exception_regex");
|
static auto PSWALLOWEXREGEX = CConfigValue<std::string>("misc:swallow_exception_regex");
|
||||||
static auto PSWALLOW = CConfigValue<Hyprlang::INT>("misc:enable_swallow");
|
static auto PSWALLOW = CConfigValue<Hyprlang::INT>("misc:enable_swallow");
|
||||||
|
|
||||||
if (!*PSWALLOW || (*PSWALLOWREGEX).empty())
|
if (!*PSWALLOW || std::string{*PSWALLOWREGEX} == STRVAL_EMPTY || (*PSWALLOWREGEX).empty())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
// check parent
|
// check parent
|
||||||
|
|
Loading…
Reference in a new issue