mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-18 23:49:50 +01:00
input: kb focus mouse focused window if unset (#7666)
Normally it shouldn't be possible to have mouse focus with no kb focus, but it does happen, and when it does this makes it considerably less annoying.
This commit is contained in:
parent
4988e00b1d
commit
b0fca6eaf0
1 changed files with 3 additions and 0 deletions
|
@ -505,6 +505,9 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||
}
|
||||
}
|
||||
|
||||
if (g_pSeatManager->state.keyboardFocus == nullptr)
|
||||
g_pCompositor->focusWindow(pFoundWindow, foundSurface);
|
||||
|
||||
m_bLastFocusOnLS = false;
|
||||
} else {
|
||||
if (*PRESIZEONBORDER && *PRESIZECURSORICON && m_eBorderIconDirection != BORDERICON_NONE) {
|
||||
|
|
Loading…
Reference in a new issue