summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-12 14:55:48 +0000
committerVaxry <vaxry@vaxry.net>2023-12-12 14:55:48 +0000
commit1950c3fc9c807f10735b0a681aca49fd2d0d2d0b (patch)
tree82fdc868c511d492a17709cf91411bc912a12262 /src/managers/input/InputManager.cpp
parent8f3848788422822c2cb36c57b4f3929eec1cc42c (diff)
input: unset resize cursor on empty focus
fixes #4133
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 374f217b..8b4b51bc 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -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)