diff options
| author | Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com> | 2025-11-05 21:06:31 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-06 00:06:31 +0000 |
| commit | c757fd375cce299e3da922190ddf1a0622ce807c (patch) | |
| tree | f1908b8ca0e2c0ff29f3afb03862a7c5d2f1a26f /src/config | |
| parent | 46b71eda6423cc9c3b19cb310c3344e81ac624c5 (diff) | |
compositor: block parent window interaction when modal dialog children window is open (#12057)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/ConfigDescriptions.hpp | 6 | ||||
| -rw-r--r-- | src/config/ConfigManager.cpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index 9c503f0f..6b97c1c0 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -142,6 +142,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = { .type = CONFIG_OPTION_BOOL, .data = SConfigOptionDescription::SBoolData{false}, }, + SConfigOptionDescription{ + .value = "general:modal_parent_blocking", + .description = "If true, parent windows of modals will not be interactive.", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{true}, + }, /* * decoration: diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index a98e15cf..b93808b2 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -484,6 +484,7 @@ CConfigManager::CConfigManager() { registerConfigVar("general:col.inactive_border", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xff444444"}); registerConfigVar("general:col.nogroup_border", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xffffaaff"}); registerConfigVar("general:col.nogroup_border_active", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0xffff00ff"}); + registerConfigVar("general:modal_parent_blocking", Hyprlang::INT{1}); registerConfigVar("misc:disable_hyprland_logo", Hyprlang::INT{0}); registerConfigVar("misc:disable_splash_rendering", Hyprlang::INT{0}); |
