From 6950331d1e47367cb198b882f07db92e670dd71e Mon Sep 17 00:00:00 2001 From: Felix Salcher Date: Thu, 31 Jul 2025 22:28:51 +0200 Subject: [PATCH] fix mouse initially going to pointer without eye being visible --- src/renderer/widgets/PasswordInputField.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index 11e772e..6eea676 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -644,7 +644,7 @@ CBox CPasswordInputField::getEyeBox() { void CPasswordInputField::onHover(const Vector2D& pos) { CBox eyeBox = getEyeBox(); - if (eyeBox.containsPoint(pos) && password.allowToggle && !password.eye.hide) + if (eyeBox.containsPoint(pos) && password.allowToggle && !password.eye.hide && (passwordLength > 0 || checkWaiting)) g_pSeatManager->m_pCursorShape->setShape(WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_POINTER); else g_pSeatManager->m_pCursorShape->setShape(WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_TEXT);