aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/config/ConfigDescriptions.hpp
diff options
context:
space:
mode:
authorParaN3xus <[email protected]>2024-08-21 18:24:42 +0800
committerGitHub <[email protected]>2024-08-21 11:24:42 +0100
commit946ed1f32ae8e3840d1b3bb04c6e048ca7501fba (patch)
tree647e1708e6cf11242c40fac6455d6089ebcf1030 /src/config/ConfigDescriptions.hpp
parent4eff224a7f6f4baa5600f687d6f2ef4ad8340ad3 (diff)
downloadHyprland-946ed1f32ae8e3840d1b3bb04c6e048ca7501fba.tar.gz
Hyprland-946ed1f32ae8e3840d1b3bb04c6e048ca7501fba.zip
core: add option to control which window to focus on close (#7368)
Diffstat (limited to 'src/config/ConfigDescriptions.hpp')
-rw-r--r--src/config/ConfigDescriptions.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 3c830132..73b995ae 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -454,6 +454,13 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.data = SConfigOptionDescription::SRangeData{1, 0, 3},
},
SConfigOptionDescription{
+ .value = "input:focus_on_close",
+ .description = "Controls the window focus behavior when a window is closed. When set to 0, focus will shift to the next window candidate. When set to 1, focus will shift "
+ "to the window under the cursor.",
+ .type = CONFIG_OPTION_CHOICE,
+ .data = SConfigOptionDescription::SChoiceData{0, "next,cursor"},
+ },
+ SConfigOptionDescription{
.value = "input:mouse_refocus",
.description = "if disabled, mouse focus won't switch to the hovered window unless the mouse crosses a window boundary when follow_mouse=1.",
.type = CONFIG_OPTION_BOOL,
@@ -1341,4 +1348,4 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{true},
},
-}; \ No newline at end of file
+};