mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 11:45:58 +01:00
misc: fix some minor typos (#7530)
* keybindmgr: fix typo in swap prev seems a suspicious extra ) got added, remove it. * configmgr: dont dereference invalid iterator i think the idea here was to print the key and not the iterator at or past .end()
This commit is contained in:
parent
8d6c18076f
commit
1ea47950f4
2 changed files with 2 additions and 2 deletions
|
@ -1720,7 +1720,7 @@ static bool parseModeLine(const std::string& modeline, drmModeModeInfo& mode) {
|
||||||
if (it != flagsmap.end())
|
if (it != flagsmap.end())
|
||||||
mode.flags |= it->second;
|
mode.flags |= it->second;
|
||||||
else
|
else
|
||||||
Debug::log(ERR, "invalid flag {} in modeline", it->first);
|
Debug::log(ERR, "invalid flag {} in modeline", key);
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(mode.name, sizeof(mode.name), "%dx%d@%d", mode.hdisplay, mode.vdisplay, mode.vrefresh / 1000);
|
snprintf(mode.name, sizeof(mode.name), "%dx%d@%d", mode.hdisplay, mode.vdisplay, mode.vrefresh / 1000);
|
||||||
|
|
|
@ -2441,7 +2441,7 @@ SDispatchResult CKeybindManager::swapnext(std::string arg) {
|
||||||
// sometimes we may come back to ourselves.
|
// sometimes we may come back to ourselves.
|
||||||
if (toSwap == PLASTWINDOW) {
|
if (toSwap == PLASTWINDOW) {
|
||||||
if (arg == "last" || arg == "l" || arg == "prev" || arg == "p")
|
if (arg == "last" || arg == "l" || arg == "prev" || arg == "p")
|
||||||
toSwap = g_pCompositor->getPrevWindowOnWorkspace(PLASTWINDOW), true;
|
toSwap = g_pCompositor->getPrevWindowOnWorkspace(PLASTWINDOW, true);
|
||||||
else
|
else
|
||||||
toSwap = g_pCompositor->getNextWindowOnWorkspace(PLASTWINDOW, true);
|
toSwap = g_pCompositor->getNextWindowOnWorkspace(PLASTWINDOW, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue