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/5274707af0 |ma/kwin/-/commit/6f404a06a9
                   |7112ba71411611d7fe43cb2b076 |fb11df98ae4507ebca56560a7e4
                   |3c2                         |709

--- Comment #6 from Vlad Zahorodnii <[email protected]> ---
Git commit 6f404a06a9fb11df98ae4507ebca56560a7e4709 by Vlad Zahorodnii.
Committed on 08/10/2026 at 13:26.
Pushed by vladz into branch 'Plasma/6.8'.

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/6f404a06a9fb11df98ae4507ebca56560a7e4709

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

Reply via email to