core: limit onClick to down events (#826)

This commit is contained in:
Maximilian Seidler 2025-07-20 09:46:49 +02:00 committed by GitHub
parent 31297a871b
commit 1553dd78fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -701,6 +701,9 @@ void CHyprlock::handleKeySym(xkb_keysym_t sym, bool composed) {
}
void CHyprlock::onClick(uint32_t button, bool down, const Vector2D& pos) {
if (!down)
return;
if (!m_focusedOutput.lock())
return;