Bug 497397 - Windows that were closed while quick-tiled should be re-opened in the same tiled state
Summary: Windows that were closed while quick-tiled should be re-opened in the same ti...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: Quick Tiling (other bugs)
Version First Reported In: 6.2.4
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-13 05:41 UTC by Damglador
Modified: 2025-05-23 20:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damglador 2024-12-13 05:41:52 UTC
SUMMARY
Tiled windows save their tiles size as their actual size. I don't know how to explain it properly. Normally you tile a window, but if you open another window for this program 

STEPS TO REPRODUCE
1. Open a program (for example Konsole)
2. Drag it to a border to tile
3. Open another Konsole window, or close current and open a new one

OBSERVED RESULT
New windows of the program have the tiled geometry of the program instead of pre-tiled like it should be

EXPECTED RESULT
Programs should keep their pre-tiled geometry. Always.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-12-13 18:20:42 UTC
Agreed. This would require:
1. Teaching KWindowConfig::saveWindowSize about KWin tiling, so that if the window is tiled, it doesn't save that windowed position and instead saves the tiled position.
2. Teaching KWindowConfig::restoreWindowSize about KWin tiling, so that if the window was closed in a tiled state, it doesn't try to restore the windowed position, and instead tells KWin to tile it accordingly.
3. Making KWin respond to that appropriately.
Comment 2 Nate Graham 2024-12-13 18:21:47 UTC
*** Bug 472367 has been marked as a duplicate of this bug. ***
Comment 3 Damglador 2025-05-23 00:31:45 UTC
So apparently this is a Wayland issue. For apps, at least Qt apps, that use Xwayland, they remember where they were snapped and remember that they were snapped, so dragging them off a corner returns their normal size.
Comment 4 Damglador 2025-05-23 00:33:58 UTC
For testing I used WAYLAND_DISPLAY=xcb dolphin
Comment 5 Nate Graham 2025-05-23 20:41:37 UTC
Don't change the version field; this is to record the *first* version that the issue was reported in.