From 6a4bda60f2dfcc82fbccfca49d5c50a31f475596 Mon Sep 17 00:00:00 2001 From: Hilmar Wiegand Date: Mon, 10 Apr 2023 15:40:03 +0200 Subject: Allow movefocus for empty workspaces (#2011) * Allow switching to empty workspaces using movefocus * Allow switching to other workspaces when no windows are focused * Implement review feedback * Add option to disable focus fallback * Remove unnecessary braces --- src/config/ConfigManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 37554ff9..bf11b1bf 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -63,6 +63,7 @@ void CConfigManager::setDefaultVars() { ((CGradientValueData*)configValues["general:col.group_border_active"].data.get())->reset(0x66ffff00); configValues["general:cursor_inactive_timeout"].intValue = 0; configValues["general:no_cursor_warps"].intValue = 0; + configValues["general:no_focus_fallback"].intValue = 0; configValues["general:resize_on_border"].intValue = 0; configValues["general:extend_border_grab_area"].intValue = 15; configValues["general:hover_icon_on_border"].intValue = 1; @@ -1967,4 +1968,4 @@ std::string CConfigManager::getDefaultWorkspaceFor(const std::string& name) { if (IT == m_mDefaultWorkspaces.end()) return ""; return IT->second; -} \ No newline at end of file +} -- cgit v1.2.3