D17800: [wayland] Don't crash when moving client is destroyed
Vlad Zagorodniy <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag created this revision. Herald added a project: KWin. Herald added a subscriber: kwin. zzag requested review of this revision. REVISION SUMMARY If a moving client is closed(e.g. an app crashed while resizing), then workspace()->getMovingClient() can return a dangling pointer because the destructor of ShellClient doesn't reset Workspace::movingClient. REPOSITORY R108 KWin BRANCH reset-move-resize-cursor REVISION DETAIL https://phabricator.kde.org/D17800 AFFECTED FILES autotests/integration/pointer_input.cpp shell_client.cpp To: zzag Cc: kwin, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart