From 32e4d99929ea0dcea8f84041ad483d56a183e569 Mon Sep 17 00:00:00 2001 From: imaphatduc Date: Fri, 7 Jan 2022 19:06:54 +0700 Subject: [PATCH] Add lastworkspace configuration handler option --- src/config/ConfigManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 43700b4..6094bc2 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -119,6 +119,7 @@ void handleBind(const std::string& command, const std::string& value) { if (HANDLER == "movefocus") dispatcher = KeybindManager::movefocus; if (HANDLER == "movetoworkspace") dispatcher = KeybindManager::movetoworkspace; if (HANDLER == "workspace") dispatcher = KeybindManager::changeworkspace; + if (HANDLER == "lastworkspace") dispatcher = KeybindManager::changetolastworkspace; if (HANDLER == "togglefloating") dispatcher = KeybindManager::toggleActiveWindowFloating; if (dispatcher && KEY != 0) @@ -543,4 +544,4 @@ std::vector ConfigManager::getMatchingRules(xcb_window_t w) { } return returns; -} \ No newline at end of file +}