<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>506622</bug_id>
          
          <creation_ts>2025-07-05 09:07:53 +0000</creation_ts>
          <short_desc>Losing one of the custom tiling location at restart or logout</short_desc>
          <delta_ts>2026-06-01 20:32:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>Custom Tiling</component>
          <version>6.4.0</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bruno">bruno</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>dajake1337</cc>
    
    <cc>kde.tmapu</cc>
    
    <cc>mr.yamamoto</cc>
    
    <cc>notmart</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/59dfbab76378b2b6c4df39c75ce0b75d9b1d26de</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2438652</commentid>
    <comment_count>0</comment_count>
    <who name="Bruno">bruno</who>
    <bug_when>2025-07-05 09:07:53 +0000</bug_when>
    <thetext>SUMMARY
When creating a custom tiling layout, one of the zones consistently disappears after logout or restart.  Zones are created using Meta+T, it works as expected during the session but one zone at the bottom of the secondary monitor in portrait mode always disappears after logout or restart.

STEPS TO REPRODUCE
1. Create a custom tiling layout.
2. Restart or logout.
3. Meta+T shows one zone missing from before restart.

OBSERVED RESULT
One zone at the bottom is missing.

EXPECTED RESULT
All 3 zones from before should be there.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora KDE 6.4.2
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2438741</commentid>
    <comment_count>1</comment_count>
    <who name="D Mitsuki">mr.yamamoto</who>
    <bug_when>2025-07-05 16:26:12 +0000</bug_when>
    <thetext>I&apos;m observing the same behavior, and it&apos;s also happening to my monitor in portrait mode. It&apos;s my leftmost monitor and I&apos;m on plasma 6.4.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2444433</commentid>
    <comment_count>2</comment_count>
    <who name="i">kde.tmapu</who>
    <bug_when>2025-08-01 09:07:41 +0000</bug_when>
    <thetext>Exact same situation here - left-hand portrait monitor constantly loses the tile layout, happening since KDE 6.4.x.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2444910</commentid>
    <comment_count>3</comment_count>
    <who name="">dajake1337</who>
    <bug_when>2025-08-03 13:26:19 +0000</bug_when>
    <thetext>I too experience this. Same setup. Left hand portrait Monitor doesn&apos;t save tiling config. Also since 6.4.x</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519511</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-05-31 11:24:12 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9310</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519657</commentid>
    <comment_count>5</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-01 07:42:12 +0000</bug_when>
    <thetext>Git commit 9de61e188c6b583386a3734b7f51d3658b9fbf1c by Vlad Zahorodnii, on behalf of Hynek Schlindenbuch.
Committed on 01/06/2026 at 07:22.
Pushed by vladz into branch &apos;master&apos;.

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&apos;s layout wasn&apos;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&apos;t fit.
Related: bug 514355

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

https://invent.kde.org/plasma/kwin/-/commit/9de61e188c6b583386a3734b7f51d3658b9fbf1c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519677</commentid>
    <comment_count>6</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2026-06-01 08:33:47 +0000</bug_when>
    <thetext>Git commit 04e43bd9afbb75985c3e0b9617243d9070f84d30 by Vlad Zahorodnii.
Committed on 01/06/2026 at 08:15.
Pushed by vladz into branch &apos;Plasma/6.7&apos;.

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&apos;s layout wasn&apos;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&apos;t fit.
Related: bug 514355


(cherry picked from commit 9de61e188c6b583386a3734b7f51d3658b9fbf1c)

Co-authored-by: Hynek Schlindenbuch &lt;schlindenbuch.h@seznam.cz&gt;

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

https://invent.kde.org/plasma/kwin/-/commit/04e43bd9afbb75985c3e0b9617243d9070f84d30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519876</commentid>
    <comment_count>7</comment_count>
    <who name="Hynek Schlindenbuch">schlindenbuch.h</who>
    <bug_when>2026-06-01 20:32:10 +0000</bug_when>
    <thetext>Git commit 59dfbab76378b2b6c4df39c75ce0b75d9b1d26de by Hynek Schlindenbuch.
Committed on 01/06/2026 at 18:02.
Pushed by vladz into branch &apos;Plasma/6.6&apos;.

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&apos;s layout wasn&apos;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&apos;t fit.
Related: bug 514355

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

https://invent.kde.org/plasma/kwin/-/commit/59dfbab76378b2b6c4df39c75ce0b75d9b1d26de</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>