keybinds: Remove removed keybinds (#13605)
There seems to be no reason for them to remain. But if they are kept, no notification appears to warn a user that a dispatcher used in their config is no longer valid. The config remains valid, but the bindings do not work anymore.
This commit is contained in:
parent
ae9ca17b40
commit
42f0a6005b
3 changed files with 1 additions and 19 deletions
|
|
@ -250,7 +250,7 @@ bind = $mainMod, E, exec, $fileManager
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, V, togglefloating,
|
||||||
bind = $mainMod, R, exec, $menu
|
bind = $mainMod, R, exec, $menu
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
bind = $mainMod, P, pseudo, # dwindle
|
||||||
bind = $mainMod, J, togglesplit, # dwindle
|
bind = $mainMod, J, layoutmsg, togglesplit, # dwindle
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, left, movefocus, l
|
bind = $mainMod, left, movefocus, l
|
||||||
|
|
|
||||||
|
|
@ -109,9 +109,6 @@ CKeybindManager::CKeybindManager() {
|
||||||
m_dispatchers["togglegroup"] = toggleGroup;
|
m_dispatchers["togglegroup"] = toggleGroup;
|
||||||
m_dispatchers["changegroupactive"] = changeGroupActive;
|
m_dispatchers["changegroupactive"] = changeGroupActive;
|
||||||
m_dispatchers["movegroupwindow"] = moveGroupWindow;
|
m_dispatchers["movegroupwindow"] = moveGroupWindow;
|
||||||
m_dispatchers["togglesplit"] = toggleSplit;
|
|
||||||
m_dispatchers["swapsplit"] = swapSplit;
|
|
||||||
m_dispatchers["splitratio"] = alterSplitRatio;
|
|
||||||
m_dispatchers["focusmonitor"] = focusMonitor;
|
m_dispatchers["focusmonitor"] = focusMonitor;
|
||||||
m_dispatchers["movecursortocorner"] = moveCursorToCorner;
|
m_dispatchers["movecursortocorner"] = moveCursorToCorner;
|
||||||
m_dispatchers["movecursor"] = moveCursor;
|
m_dispatchers["movecursor"] = moveCursor;
|
||||||
|
|
@ -1709,18 +1706,6 @@ SDispatchResult CKeybindManager::changeGroupActive(std::string args) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
SDispatchResult CKeybindManager::toggleSplit(std::string args) {
|
|
||||||
return {.success = false, .error = "removed - use layoutmsg"};
|
|
||||||
}
|
|
||||||
|
|
||||||
SDispatchResult CKeybindManager::swapSplit(std::string args) {
|
|
||||||
return {.success = false, .error = "removed - use layoutmsg"};
|
|
||||||
}
|
|
||||||
|
|
||||||
SDispatchResult CKeybindManager::alterSplitRatio(std::string args) {
|
|
||||||
return {.success = false, .error = "removed - use layoutmsg"};
|
|
||||||
}
|
|
||||||
|
|
||||||
SDispatchResult CKeybindManager::focusMonitor(std::string arg) {
|
SDispatchResult CKeybindManager::focusMonitor(std::string arg) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromString(arg);
|
const auto PMONITOR = g_pCompositor->getMonitorFromString(arg);
|
||||||
tryMoveFocusToMonitor(PMONITOR);
|
tryMoveFocusToMonitor(PMONITOR);
|
||||||
|
|
|
||||||
|
|
@ -194,10 +194,7 @@ class CKeybindManager {
|
||||||
static SDispatchResult swapActive(std::string);
|
static SDispatchResult swapActive(std::string);
|
||||||
static SDispatchResult toggleGroup(std::string);
|
static SDispatchResult toggleGroup(std::string);
|
||||||
static SDispatchResult changeGroupActive(std::string);
|
static SDispatchResult changeGroupActive(std::string);
|
||||||
static SDispatchResult alterSplitRatio(std::string);
|
|
||||||
static SDispatchResult focusMonitor(std::string);
|
static SDispatchResult focusMonitor(std::string);
|
||||||
static SDispatchResult toggleSplit(std::string);
|
|
||||||
static SDispatchResult swapSplit(std::string);
|
|
||||||
static SDispatchResult moveCursorToCorner(std::string);
|
static SDispatchResult moveCursorToCorner(std::string);
|
||||||
static SDispatchResult moveCursor(std::string);
|
static SDispatchResult moveCursor(std::string);
|
||||||
static SDispatchResult workspaceOpt(std::string);
|
static SDispatchResult workspaceOpt(std::string);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue