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

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/0ca7b40da045 |ma/kwin/commit/c5df8cedd8ef
                   |7e1ee5ce079d78d304c76b7592b |0b5f1b6461e71fdec3f6a712289
                   |5                           |e

--- Comment #9 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit c5df8cedd8ef0b5f1b6461e71fdec3f6a712289e by Vlad Zahorodnii, on
behalf of Dominique Hummel.
Committed on 14/02/2023 at 12:35.
Pushed by vladz into branch 'cherry-pick-0ca7b40d'.

tiling: Evacuate tiled windows from custom & quick tiling on output removal

Context: If a display is removed, the corresponding TileManager is removed with
it. This in turn removes every one of its Tiles with it, and when a Tile's
destructor is called, it attempts to find a new replacement tile for any
windows it was previously managing.

However, if the Tile is removed because its corresponding TileManager has been
removed, this has the potential to cause a segfault in KWin, causing it to
crash (I suspect a possible race condition? but not sure).

This MR correctly evacuates custom tiled windows & migrates quick tiled windows
upon output removal.


(cherry picked from commit 0ca7b40da0457e1ee5ce079d78d304c76b7592b5)

M  +8    -0    src/tiles/tile.cpp
M  +5    -0    src/tiles/tile.h
M  +42   -3    src/workspace.cpp

https://invent.kde.org/plasma/kwin/commit/c5df8cedd8ef0b5f1b6461e71fdec3f6a712289e

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

Reply via email to