fix mouse initially going to pointer without eye being visible

This commit is contained in:
Felix Salcher 2025-07-31 22:28:51 +02:00
parent 53684cb6f2
commit 6950331d1e
No known key found for this signature in database

View file

@ -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);