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

Vlad Zahorodnii <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/9b0fd06e14
                   |                            |e30c8fa39271fe6b1c0faaee381
                   |                            |588

--- Comment #3 from Vlad Zahorodnii <[email protected]> ---
Git commit 9b0fd06e14e30c8fa39271fe6b1c0faaee381588 by Vlad Zahorodnii.
Committed on 19/05/2025 at 08:33.
Pushed by vladz into branch 'master'.

tiles: Fix CustomTile::remove() collapsing tile tree too much

When a tile is removed and its sibling is empty, the parent tile will
be converted in a leaf tile.

The problem is that CustomTile::remove() can attempt to convert the
root tile in a leaf tile, but we expect the root tile to contain at
least one child at all times.

This change adds a relevant guard. Note that CustomTile::remove() can
be still used to purge all children of the RootTile. This is mainly
used by the tiles editor. Window::quickTileGeometry() was also adjusted
so it doesn't report a misleading geometry if the window can't be
custom tiled.

M  +1    -1    src/tiles/customtile.cpp
M  +5    -0    src/tiles/tile.cpp
M  +1    -0    src/tiles/tile.h
M  +2    -0    src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/9b0fd06e14e30c8fa39271fe6b1c0faaee381588

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

Reply via email to