summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-03-24 23:57:23 +0000
committerVaxry <vaxry@vaxry.net>2025-03-24 23:57:50 +0000
commitf3db1b172c6c61df7d5b8c960feccf3c19eb8e23 (patch)
treeb7ab6fc14651639b6e0dadb537402540dc827591 /src/config
parent2a6d070774df4c17ca7d7d427065b04d0c77250a (diff)
decoration: bring back border_part_of_window
fixes #9683, now under decoration: though
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigDescriptions.hpp6
-rw-r--r--src/config/ConfigManager.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 54223c1c..402780e0 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -247,6 +247,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_STRING_LONG,
.data = SConfigOptionDescription::SStringData{""}, //##TODO UNSET?
},
+ SConfigOptionDescription{
+ .value = "decoration:border_part_of_window",
+ .description = "whether the border should be treated as a part of the window.",
+ .type = CONFIG_OPTION_BOOL,
+ .data = SConfigOptionDescription::SBoolData{true},
+ },
/*
* blur:
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 983681c9..ebbdb7c6 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -539,6 +539,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("decoration:dim_special", {0.2f});
registerConfigVar("decoration:dim_around", {0.4f});
registerConfigVar("decoration:screen_shader", {STRVAL_EMPTY});
+ registerConfigVar("decoration:border_part_of_window", Hyprlang::INT{1});
registerConfigVar("dwindle:pseudotile", Hyprlang::INT{0});
registerConfigVar("dwindle:force_split", Hyprlang::INT{0});