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

Vlad Zahorodnii <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/9de61e188c |ma/kwin/-/commit/04e43bd9af
                   |6b583386a3734b7f51d3658b9fb |bb75985c3e0b9617243d9070f84
                   |f1c                         |d30

--- Comment #6 from Vlad Zahorodnii <[email protected]> ---
Git commit 04e43bd9afbb75985c3e0b9617243d9070f84d30 by Vlad Zahorodnii.
Committed on 01/06/2026 at 08:15.
Pushed by vladz into branch 'Plasma/6.7'.

tiles: fix incorrect split of single tile

The bug could be reproduced like this:

- Load the 3 column custom tiling layout.
- Delete 2 of the columns.
- Split the remaining column into top/bottom.
- Reload kwin.
- There is only one tile remaining.

The issue was that the second tile was created as a sibling of the
originally split tile (i.e. 2 tiles both with the root tile as parent),
but the root tile's layout wasn't changed. So it remained horizontal and
as a result it was saved incorrectly to JSON (2 horizontal tiles with
width = 1, instead of 2 vertical tiles with height = 0.5).

When the layout was loaded from the JSON, the second tile was dropped,
because it didn't fit.
Related: bug 514355


(cherry picked from commit 9de61e188c6b583386a3734b7f51d3658b9fbf1c)

Co-authored-by: Hynek Schlindenbuch <[email protected]>

M  +27   -0    autotests/integration/tiles_test.cpp
M  +1    -0    src/tiles/customtile.cpp

https://invent.kde.org/plasma/kwin/-/commit/04e43bd9afbb75985c3e0b9617243d9070f84d30

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

Reply via email to