<?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>490586</bug_id>
          
          <creation_ts>2024-07-20 23:07:23 +0000</creation_ts>
          <short_desc>With multiple monitors enabled, reverting a secondary monitor change shows settings from primary monitor</short_desc>
          <delta_ts>2025-04-04 13:42:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_kscreen</component>
          <version>6.1.2</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>multiscreen</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="nyanpasu64">nyanpasu64</reporter>
          <assigned_to name="kscreen-bugs-null@kde.org">kscreen-bugs-null</assigned_to>
          <cc>dashmeshsingh98</cc>
    
    <cc>hadrian.decurtins</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>med.medin.2014</cc>
    
    <cc>nate</cc>
    
    <cc>olib141</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kscreen/-/commit/50a3ee595f5f5c6cebed220b79f13483f3ecad97</cf_commitlink>
          <cf_versionfixedin>6.3.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2338858</commentid>
    <comment_count>0</comment_count>
    <who name="nyanpasu64">nyanpasu64</who>
    <bug_when>2024-07-20 23:07:23 +0000</bug_when>
    <thetext>SUMMARY
In Display Configuration, if I change the resolution/refresh of a secondary monitor and revert it (or wait for the 15 second timer to run out), the secondary monitor is selected but the resolution/refresh rate show the settings of the primary monitor.

STEPS TO REPRODUCE
1. Enable two monitor outputs, set to different resolutions to make the bug easier to see.
2. Change the resolution of the second monitor and hit Apply.
3. Hit Revert.

OBSERVED RESULT
The second monitor is otulined in blue, and &quot;Device:&quot; shows the second monitor. The problem is that the resolution/refresh rate match the primary monitor instead. Clicking the second monitor does nothing. If you want to change resolutions again, you have to click the primary monitor then the secondary again.

EXPECTED RESULT
If the secondary monitor remains highlighted, the fields on the page should reflect it properly.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: M&amp;A Technology
Product Name: DB75EN__

ADDITIONAL INFORMATION
I attempted to record the screen but Spectacle hung when I clicked &quot;Finish recording&quot;, hanging in PipeWireBaseEncodedStream::refresh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2408548</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-03-17 19:48:32 +0000</bug_when>
    <thetext>*** Bug 495364 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2408550</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-03-17 19:48:38 +0000</bug_when>
    <thetext>*** Bug 494747 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2412253</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-04-01 12:22:53 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreen/-/merge_requests/367</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2413070</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-04-04 12:50:47 +0000</bug_when>
    <thetext>Git commit 3e8ccda33895efe9311b5b5f1e142c6d608846da by Nate Graham, on behalf of Oliver Beard.
Committed on 04/04/2025 at 12:44.
Pushed by olib into branch &apos;master&apos;.

kcm: Fix wrong settings shown when reverting changes
When reverting display changes, due to model changes, the StackLayout&apos;s currentIndex is changed by the stackLayout. This is a behaviour added in Qt 6.5, and requires working around to ensure we keep it the same as selectedOutput.
FIXED-IN: 6.3

M  +6    -0    kcm/ui/Panel.qml

https://invent.kde.org/plasma/kscreen/-/commit/3e8ccda33895efe9311b5b5f1e142c6d608846da</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2413072</commentid>
    <comment_count>5</comment_count>
    <who name="Oliver Beard">olib141</who>
    <bug_when>2025-04-04 12:51:07 +0000</bug_when>
    <thetext>Git commit 50a3ee595f5f5c6cebed220b79f13483f3ecad97 by Oliver Beard.
Committed on 04/04/2025 at 12:51.
Pushed by olib into branch &apos;Plasma/6.3&apos;.

kcm: Fix wrong settings shown when reverting changes
When reverting display changes, due to model changes, the StackLayout&apos;s currentIndex is changed by the stackLayout. This is a behaviour added in Qt 6.5, and requires working around to ensure we keep it the same as selectedOutput.
FIXED-IN: 6.3


(cherry picked from commit 3e8ccda33895efe9311b5b5f1e142c6d608846da)

Co-authored-by: Oliver Beard &lt;olib141@outlook.com&gt;

M  +6    -0    kcm/ui/Panel.qml

https://invent.kde.org/plasma/kscreen/-/commit/50a3ee595f5f5c6cebed220b79f13483f3ecad97</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>