Bug 421870 - windows on wrong desktop after session restore on Wayland
Summary: windows on wrong desktop after session restore on Wayland
Status: RESOLVED DUPLICATE of bug 336990
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords: wayland
: 469670 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-21 17:06 UTC by Niklas Sombert
Modified: 2024-01-09 05:04 UTC (History)
27 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
my ksmserverrc after logging out of the x11 session (3.99 KB, text/plain)
2020-05-21 17:06 UTC, Niklas Sombert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Sombert 2020-05-21 17:06:31 UTC
Created attachment 128671 [details]
my ksmserverrc after logging out of the x11 session

SUMMARY
I'm used to being greeted with my last windows on login – I configured ksmserver that way.

I recently tried logging in with the Plasma Wayland sessions instead of the normal X one and most things worked, but all windows from the last session (except the ones for which I configured window rules) were opened on the first virtual desktop.

STEPS TO REPRODUCE
1. log in to a Plasma X11 session
2. open kcmshell5 kcmsmserver and configure it so that the last session is restored on login
3. open a few windows on various virtual desktops
4. log out and log back in
5. see that the windows are in the same place you left them
6. log out, but log back in with a Plasma Wayland session
7. see that windows are all on the first virtual desktop (unless you configured window rules)

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Niklas Sombert 2020-05-21 17:08:36 UTC
I should have scrolled down. m)

OBSERVED RESULT

windows are placed on the first virtual desktop

EXPECTED RESULT

windows are on the original virtual desktop

> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Kubuntu 20.04
> (available in About System)
> KDE Plasma Version: 5.18.5
> KDE Frameworks Version: 5.68.0
Comment 2 Mark A. Stevens 2021-10-19 22:06:28 UTC
STEPS TO REPRODUCE
1. log in to a Plasma X11 session
2. open kcmshell5 kcmsmserver and configure it so that the last session is restored on login
3. open a few windows on various virtual desktops
4. log out and log back in
5. see that the windows are in the same place you left them
6. log out, but log back in with a Plasma Wayland session
7. see that windows are all on the first virtual desktop (unless you configured window rules)

OBSERVED RESULT - X11
Okular windows open in correct Activities.
Firefox windows do not open in correct Activities, but do open in first defined Activity.
Terminal windows do not open.
Amule does not open in correct Activities.

EXPECTED RESULT - X11
Okular windows open in correct Activities.
Firefox windows open in correct Activities.
Terminal windows open in correct Activities.
Amule opens in correct Activity.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Operating System: Fedora 34
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.14.12-200.fc34.x86_64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: Radeon RX 570 Series

OBSERVED RESULT - Wayland
Okular windows does not open.
Firefox windows opens in correct Activities.
Terminal windows do not open.
Amule does not open in correct Activities.

EXPECTED RESULT - Wayland
Okular windows open in correct Activities.
Firefox windows open in correct Activities.
Terminal windows open in correct Activities.
Amule opens in correct Activity.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Operating System: Fedora 34
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.14.12-200.fc34.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: Radeon RX 570 Series

ADDITIONAL INFORMATION

Second monitor lost wallpaper when switching from X11 to Wayland.
Comment 3 Brian Kaye 2022-01-31 17:55:31 UTC
More discussion in bug 442380
Comment 4 kde.org 2022-06-28 11:28:27 UTC
Now that David fixed https://bugs.kde.org/show_bug.cgi?id=442380, can you still reproduce the issue with KDE Plasma 5.25.2, or can we close this one as well?
Comment 5 Brian Kaye 2022-06-28 13:23:25 UTC
(In reply to kde.org from comment #4)
> Now that David fixed https://bugs.kde.org/show_bug.cgi?id=442380, can you
> still reproduce the issue with KDE Plasma 5.25.2, or can we close this one
> as well?

As soon as the distros pick it up and we can veryify. As of this post Fedora has not so it is hard to test.
Comment 6 Bug Janitor Service 2022-07-13 04:36:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Brian Kaye 2022-07-14 21:24:54 UTC
I use the X11 version and it now seems to work properly.
Comment 8 Kishore Gopalakrishnan 2022-07-17 06:12:13 UTC
This issue (applications on wrong desktop after session restore) is still reproducible on Wayland (X11 is fixed, as mentioned earlier).

Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.55-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD EPYC Processor (with IBPB)
Memory: 1.4 GiB of RAM
Graphics Processor: virgl
Manufacturer: QEMU
Comment 9 Šimon (Simon) Rataj 2022-08-23 12:23:01 UTC
Firefox windows using xwayland used to be often restored in the corresponding virtual desktops and on the corresponding monitor (although not always, some of my 25 Firefox windows were almost always misplaced), but after I configured it to use native Wayland (for better performance), it starting opening in the first virtual desktop on the same monitor (not primary, though) just like Firefox Nightly, which uses Wayland by default, has been doing.
Comment 10 Nicolas Fella 2023-05-12 16:09:14 UTC
*** Bug 469670 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2023-05-17 17:19:14 UTC

*** This bug has been marked as a duplicate of bug 336990 ***