refocus on reserved area
This commit is contained in:
parent
3c3f80c2fe
commit
f4add0ac6d
3 changed files with 17 additions and 1 deletions
|
|
@ -653,7 +653,11 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
// warp and focus
|
||||
if (anotherMonitor)
|
||||
g_pCompositor->warpCursorTo(PWINDOW->m_vRealPosition.vec() + PWINDOW->m_vRealSize.vec() / 2.f);
|
||||
|
||||
g_pCompositor->focusWindow(PWINDOW, g_pXWaylandManager->getWindowSurface(PWINDOW));
|
||||
|
||||
if (g_pCompositor->cursorOnReservedArea()) // fix focus on bars etc
|
||||
g_pInputManager->refocus();
|
||||
} else
|
||||
g_pInputManager->refocus();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue