mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-18 18:29:48 +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 PSWALLOW = CConfigValue<Hyprlang::INT>("misc:enable_swallow");
|
||||
|
||||
if (!*PSWALLOW || (*PSWALLOWREGEX).empty())
|
||||
if (!*PSWALLOW || std::string{*PSWALLOWREGEX} == STRVAL_EMPTY || (*PSWALLOWREGEX).empty())
|
||||
return nullptr;
|
||||
|
||||
// check parent
|
||||
|
|
Loading…
Reference in a new issue