Add lastworkspace configuration handler option

This commit is contained in:
imaphatduc 2022-01-07 19:06:54 +07:00
parent 595b186477
commit 32e4d99929

View file

@ -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<SWindowRule> ConfigManager::getMatchingRules(xcb_window_t w) {
}
return returns;
}
}