Skip to content

Update pointer and touch focus when focused window is closed

Vlad Zahorodnii requested to merge work/zzag/pointer-input-fix-crash into master

Prior to dropping Deleted, we implicitly relied on the fact that the QPointer storing the focused window will be reset to null when the window is closed so we didn't include any cleanup logic.

After dropping Deleted and extending the lifetime of the original window, it's no longer the case and we have to explicitly handle closing the window otherwise kwin can encounter unexpected cases.

Merge request reports

Loading