input: force focus on movefocus
This commit is contained in:
parent
9f72d508ae
commit
baf81cdc5d
3 changed files with 16 additions and 8 deletions
|
|
@ -983,7 +983,9 @@ void CKeybindManager::moveFocusTo(std::string args) {
|
|||
g_pCompositor->focusWindow(PWINDOWTOCHANGETO);
|
||||
Vector2D middle = PWINDOWTOCHANGETO->m_vRealPosition.goalv() + PWINDOWTOCHANGETO->m_vRealSize.goalv() / 2.f;
|
||||
g_pCompositor->warpCursorTo(middle);
|
||||
g_pInputManager->m_pForcedFocus = PWINDOWTOCHANGETO;
|
||||
g_pInputManager->simulateMouseMovement();
|
||||
g_pInputManager->m_pForcedFocus = nullptr;
|
||||
|
||||
if (PLASTWINDOW->m_iMonitorID != PWINDOWTOCHANGETO->m_iMonitorID) {
|
||||
// event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue