<?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>437551</bug_id>
          
          <creation_ts>2021-05-23 15:15:58 +0000</creation_ts>
          <short_desc>Session restore doesn&apos;t restore windows to the correct activity/desktop</short_desc>
          <delta_ts>2022-05-25 17:29:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>ksmserver</product>
          <component>general</component>
          <version>5.21.5</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>442380</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Ondrej Mosnáček">omosnacek</reporter>
          <assigned_to name="David Edmundson">kde</assigned_to>
          <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>rdieter</cc>
          
          <cf_commitlink></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>2035071</commentid>
    <comment_count>0</comment_count>
    <who name="Ondrej Mosnáček">omosnacek</who>
    <bug_when>2021-05-23 15:15:58 +0000</bug_when>
    <thetext>SUMMARY
After upgrading from F33 to F34 (i.e. plasma-workspace 5.20.5 -&gt; 5.21.4, I think), session restore no longer remembers the activity and virtual desktop that it was on, restoring all windows into one activity and desktop.

I have around 5-6 active activities, which I use to switch between projects I&apos;m working on, with several windows in each of them, so this completely breaks my session after a reboot :(

Note that I still use X11 session, not Wayland.

STEPS TO REPRODUCE
1. Login, open some windows in different activities and desktops.
2. Reboot and login again.

OBSERVED RESULT
All windows open in a single activity and on a single virtual desktop.

EXPECTED RESULT
Each window opens in the activity/desktop where it was before reboot.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I also tired to reboot into a clean session (disabled session restore), open some windows and reboot and the issue persisted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035072</commentid>
    <comment_count>1</comment_count>
    <who name="Ondrej Mosnáček">omosnacek</who>
    <bug_when>2021-05-23 15:18:59 +0000</bug_when>
    <thetext>(In reply to Ondrej Mosnáček from comment #0)
&gt; I also tired to reboot into a clean session (disabled session restore), open
&gt; some windows and reboot and the issue persisted.

s/tired/tried/ and to clarify, I re-enabled restoring last session before rebooting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035928</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-05-26 18:08:10 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 351402 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126698</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-05-25 17:29:31 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 442380 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>