Skip to content

Commit

Permalink
clear focus if found surface can't be focused
Browse files Browse the repository at this point in the history
modified:   src/managers/input/InputManager.cpp
  • Loading branch information
anon1efergwerfwer committed Jan 27, 2025
1 parent d2773d7 commit b78a01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/input/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
}
}

if (!foundSurface) {
if (!foundSurface || !foundSurface->hlSurface->keyboardFocusable()) {
if (!m_bEmptyFocusCursorSet) {
if (*PRESIZEONBORDER && *PRESIZECURSORICON && m_eBorderIconDirection != BORDERICON_NONE) {
m_eBorderIconDirection = BORDERICON_NONE;
Expand Down

0 comments on commit b78a01d

Please sign in to comment.