https://bugs.kde.org/show_bug.cgi?id=397577
Vlad Zagorodniy <vladz...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Version Fixed In| |5.14.4 Resolution|--- |FIXED Latest Commit| |https://commits.kde.org/kwi | |n/406b70b04e093c13faf763e2d | |885797ae037d806 --- Comment #8 from Vlad Zagorodniy <vladz...@gmail.com> --- Git commit 406b70b04e093c13faf763e2d885797ae037d806 by Vlad Zagorodniy. Committed on 13/11/2018 at 08:28. Pushed by vladz into branch 'Plasma/5.14'. [wayland] Don't crash when resizing windows Summary: If you resize a decorated client by using the resize user action(press Alt + F3 > More Actions > Resize), then KWin will crash because it gets stuck in an infinite loop (AbstractClient::performMoveResize <-> ShellClient::setGeometry). Here's how KWin gets stuck in that loop: * when you finish resizing the client, AbstractClient::keyPressEvent will call AbstractClient::finishMoveResize; * the first thing that finishMoveResize does is block geometry updates, then it does some clean up (e.g. reset the value of isMoveResize(), etc), updates the geometry of the client and when it's done, it will emit clientFinishUserMoveResized signal; * when PointerInputRedirection notices that signal, it will call processDecorationMove on the client, which in its turn will indirectly call AbstractClient::startMoveResize; * when it's time to go back to AbstractClient::keyPressEvent, geometry updates are unblocked and if there are any pending geometry updates, then ShellClient::setGeometry will be called; * ShellClient::setGeometry will eventually call ShellClient::doSetGeometry; * ShellClient::doSetGeometry will call AbstractClient::performMoveResize because AbstractClient::processDecorationMove indirectly called AbstractClient::startMoveResize; * AbstractClient::performMoveResize calls ShellClient::setGeometry; * (at this point, KWin got stuck in the infinite loop) This change swaps setMoveResizePointerButtonDown and finishMoveResize, so processDecorationMove won't indirectly call startMoveResize. FIXED-IN: 5.14.4 Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16846 M +2 -2 abstract_client.cpp https://commits.kde.org/kwin/406b70b04e093c13faf763e2d885797ae037d806 -- You are receiving this mail because: You are watching all bug changes.