Bug 500958 - On Wayland, app windows undesirably move to left screen when restarting
Summary: On Wayland, app windows undesirably move to left screen when restarting
Status: RESOLVED DUPLICATE of bug 15329
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 6.3.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, wayland-only
Depends on:
Blocks:
 
Reported: 2025-03-02 13:59 UTC by mysterty
Modified: 2025-03-31 16:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mysterty 2025-03-02 13:59:19 UTC
SUMMARY
Using 2 screen, main screen on right, all the apps swith to left screen when restarting.

STEPS TO REPRODUCE
1. Use 2 screen.
2. Define main screen as the right screen
3. restart computer

OBSERVED RESULT
All apps goes to left screen.

EXPECTED RESULT
Let all apps on the screen they was before going standby mode. let wall papers as they was before stand by mode.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.2
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 TraceyC 2025-03-07 20:45:59 UTC
This is the related bug for the behavior in X11
https://bugs.kde.org/show_bug.cgi?id=500613
Comment 2 Zamundaaa 2025-03-10 14:13:49 UTC
> restart computer
> standby mode
which one is this really about? They're very different cases.
Comment 3 mysterty 2025-03-11 10:04:09 UTC
(In reply to Zamundaaa from comment #2)
> > restart computer
> > standby mode
> which one is this really about? They're very different cases.

It's on restarting.
Comment 4 Bug Janitor Service 2025-03-26 03:46:51 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 TraceyC 2025-03-26 21:45:15 UTC
Unfortunately, Wayland does not yet remember apps positions, per bug 15329

Native Wayland windows are not allowed to determine where to place themselves on screen at all; the compositor does this. That means the compositor could implement a "remember window positions" feature and it would work automatically for all native Wayland app windows. This is tracked in Bug 15329. Until that happens, the compositor instead simply places all windows according to the placement policy.

*** This bug has been marked as a duplicate of bug 15329 ***
Comment 6 mysterty 2025-03-28 17:05:32 UTC
(In reply to TraceyC from comment #5)
> Unfortunately, Wayland does not yet remember apps positions, per bug 15329
> 
> Native Wayland windows are not allowed to determine where to place
> themselves on screen at all; the compositor does this. That means the
> compositor could implement a "remember window positions" feature and it
> would work automatically for all native Wayland app windows. This is tracked
> in Bug 15329. Until that happens, the compositor instead simply places all
> windows according to the placement policy.
> 
> *** This bug has been marked as a duplicate of bug 15329 ***

In fact, it's not even "remember windows position", it's really that windows opens only on LEFT screen, whatever we said is main screen.

So in my sense, it's a different bug : on wayland, the windows always open on left screen, and not on main screen.
Comment 7 TraceyC 2025-03-31 16:02:47 UTC
(In reply to mysterty from comment #6)
> In fact, it's not even "remember windows position", it's really that windows
> opens only on LEFT screen, whatever we said is main screen.
> 
> So in my sense, it's a different bug : on wayland, the windows always open
> on left screen, and not on main screen.

In an earlier comment, you said that the problem happened when restarting the computer.
If there's also a problem that during a normal session, all window only open on the non-primary screen, that's a different bug. Please open a different report for that. Thanks.