<?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>485635</bug_id>
          
          <creation_ts>2024-04-16 14:45:04 +0000</creation_ts>
          <short_desc>Keyboard layout is not restored in Wayland</short_desc>
          <delta_ts>2024-04-16 18:48:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Keyboard Layout widget</component>
          <version>master</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>412101</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wismill">dev</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>butirsky</cc>
    
    <cc>dev</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>2311999</commentid>
    <comment_count>0</comment_count>
    <who name="Wismill">dev</who>
    <bug_when>2024-04-16 14:45:04 +0000</bug_when>
    <thetext>SUMMARY
Last used keyboard layout is not restored when using a Wayland session.


STEPS TO REPRODUCE
1. Configure at least 2 keyboard layouts with Global policy in a Wayland session. E.g.: us,de.
2. Switch to the second layout (de).
3. Logout
4. Login

OBSERVED RESULT
Current layout is the first layout (us).

EXPECTED RESULT
Current layout should be the last used layout, i.e. the second one (de).


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: master (6.0.80)
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312003</commentid>
    <comment_count>1</comment_count>
    <who name="Wismill">dev</who>
    <bug_when>2024-04-16 14:51:16 +0000</bug_when>
    <thetext>Note that it works in X11 session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312011</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2024-04-16 15:12:03 +0000</bug_when>
    <thetext>Please make sure you have following option enabled:
system settings -&gt; startup and shutdown -&gt; desktop session -&gt; &quot;restore previous session&quot;

*** This bug has been marked as a duplicate of bug 412101 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312019</commentid>
    <comment_count>3</comment_count>
    <who name="Wismill">dev</who>
    <bug_when>2024-04-16 15:36:16 +0000</bug_when>
    <thetext>(In reply to Andrey from comment #2)
&gt; Please make sure you have following option enabled:
&gt; system settings -&gt; startup and shutdown -&gt; desktop session -&gt; &quot;restore
&gt; previous session&quot;

I do have this option activated, but it does not work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312025</commentid>
    <comment_count>4</comment_count>
    <who name="Wismill">dev</who>
    <bug_when>2024-04-16 15:51:43 +0000</bug_when>
    <thetext>Actually it does *not* work in 6.0.3 either. I just tried with a fresh new user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312045</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey">butirsky</who>
    <bug_when>2024-04-16 18:00:58 +0000</bug_when>
    <thetext>What&apos;s your layout switching policy?
Please note it doesn&apos;t work for App (or Window?) Switching policy.

Either way it&apos;s a duplicate, if it regressed let&apos;s continue in the original report.
I don&apos;t think we need a new one.

*** This bug has been marked as a duplicate of bug 412101 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2312050</commentid>
    <comment_count>6</comment_count>
    <who name="Wismill">dev</who>
    <bug_when>2024-04-16 18:48:46 +0000</bug_when>
    <thetext>(In reply to Andrey from comment #5)
&gt; What&apos;s your layout switching policy?
&gt; Please note it doesn&apos;t work for App (or Window?) Switching policy.
&gt; 
As written in the description, it’s the Global policy.

&gt; Either way it&apos;s a duplicate, if it regressed let&apos;s continue in the original
&gt; report.
&gt; I don&apos;t think we need a new one.
&gt; 
Your call.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>