https://bugs.kde.org/show_bug.cgi?id=523419

Vlad Zahorodnii <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/04c749cb3c |ma/kwin/-/commit/5274707af0
                   |e4c5c267db34678d838f2a72c0e |7112ba71411611d7fe43cb2b076
                   |fec                         |3c2

--- Comment #5 from Vlad Zahorodnii <[email protected]> ---
Git commit 5274707af07112ba71411611d7fe43cb2b0763c2 by Vlad Zahorodnii.
Committed on 08/10/2026 at 12:50.
Pushed by vladz into branch 'Plasma/6.7'.

plugins/slowkeys: Fix sending the released events

The way the filter works right now is as follows:

- on a key press or repeat, add the corresponding entry to m_firstEvent
- when there is a key repeat event and it's sufficient late enough after
  the press event, remove the key from m_firstEvent and let it pass
  through; The key is removed from m_firstEvent so repeated presses can
  be spaced out accordingly
- on a key release, let the event pass through if m_firstEvent contains
  no entry for the given key, i.e. that the corresponding key press has
  not been filtered out before

The issue lies with the key release logic. If a client has seen at least
one press event, then we have to send the release event regardless of
whether m_firstEvent contains an entry for the key or not.
(cherry picked from commit 04c749cb3ce4c5c267db34678d838f2a72c0efec)

M  +23   -11   src/plugins/slowkeys/slowkeys.cpp
M  +7    -1    src/plugins/slowkeys/slowkeys.h

https://invent.kde.org/plasma/kwin/-/commit/5274707af07112ba71411611d7fe43cb2b0763c2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to