fix hovering/clicking error when monitor is scaled

This commit is contained in:
Felix Salcher 2025-09-29 09:46:30 +02:00
parent a6f1590540
commit 83b24434d7
No known key found for this signature in database

View file

@ -728,7 +728,7 @@ void CHyprlock::onClick(uint32_t button, bool down, const Vector2D& pos) {
const auto widgets = g_pRenderer->getOrCreateWidgetsFor(*m_focusedOutput->m_sessionLockSurface);
for (const auto& widget : widgets) {
if (widget->containsPoint(SCALEDPOS))
widget->onClick(button, down, pos);
widget->onClick(button, down, SCALEDPOS);
}
}
@ -751,7 +751,7 @@ void CHyprlock::onHover(const Vector2D& pos) {
if (CONTAINSPOINT) {
if (SHOULDHOVER) {
widget->setHover(true);
widget->onHover(pos);
widget->onHover(SCALEDPOS);
outputNeedsRedraw = true;
}