input: unset resize cursor on empty focus

fixes #4133
This commit is contained in:
Vaxry 2023-12-12 14:55:48 +00:00
parent 8f38487884
commit 1950c3fc9c
1 changed files with 5 additions and 1 deletions

View File

@ -319,7 +319,11 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
if (!foundSurface) {
if (!m_bEmptyFocusCursorSet) {
m_eBorderIconDirection = BORDERICON_NONE;
if (*PRESIZEONBORDER && *PRESIZECURSORICON && m_eBorderIconDirection != BORDERICON_NONE) {
m_eBorderIconDirection = BORDERICON_NONE;
unsetCursorImage();
}
if (g_pHyprRenderer->m_bHasARenderedCursor) {
// TODO: maybe wrap?
if (m_ecbClickBehavior == CLICKMODE_KILL)