refactor: replace lambdas with CKeybindManager::switchToWindow (#3229)

moves `switchToWindow` lambdas to a single private method
`CKeybindManager::switchToWindow()`.

fixes #3227, as a by-product of the mouse motion simulation at the end
of `CKeybindManager::switchToWindow()`.
This commit is contained in:
memchr
2023-09-10 11:51:27 +00:00
committed by GitHub
parent f4e99a36a9
commit f7f70c9e72
2 changed files with 36 additions and 94 deletions

View File

@@ -91,6 +91,7 @@ class CKeybindManager {
bool ensureMouseBindState();
static bool tryMoveFocusToMonitor(CMonitor* monitor);
static void switchToWindow(CWindow* PWINDOWTOCHANGETO);
// -------------- Dispatchers -------------- //
static void killActive(std::string);