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

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/commit/c5880833d943 |ma/kwin/commit/381b685b518f
                   |30d022c4b6fc84c175aadeaf963 |5dcffb93c18cdd89b558acde987
                   |2                           |b

--- Comment #28 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 381b685b518f5dcffb93c18cdd89b558acde987b by Vlad Zahorodnii.
Committed on 29/09/2020 at 08:28.
Pushed by vladz into branch 'Plasma/5.18'.

x11: Make removal of X11 event filters safe

If an X11 event filter has been activated and it unregisters another X11
event filter, then the window manager may crash because the foreach macro
in Workspace::workspaceEvent() makes a copy of m_genericEventFilters or
m_eventFilters and we can call the event() method for an already defunct
filter.

With this change, X11 event filters can be safely removed and installed
at any particular moment.


(cherry picked from commit a433fb08a3a9255802405a17dd4c8270c68fcb25)

M  +42   -10   events.cpp
M  +10   -0    workspace.cpp
M  +15   -2    workspace.h

https://invent.kde.org/plasma/kwin/commit/381b685b518f5dcffb93c18cdd89b558acde987b

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

Reply via email to