<?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>499923</bug_id>
          
          <creation_ts>2025-02-12 20:46:14 +0000</creation_ts>
          <short_desc>Changing legacy X11 app scaling setting does not take effect in open apps immediately anymore</short_desc>
          <delta_ts>2025-03-04 22:37:55 +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.3.0</version>
          <rep_platform>Other</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>regression, usability</keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kodatarule</reporter>
          <assigned_to name="kscreen-bugs-null@kde.org">kscreen-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>unhappy-ending</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/86264ec740cb035fb1213771fe686af2b9099c80</cf_commitlink>
          <cf_versionfixedin>6.3.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2397290</commentid>
    <comment_count>0</comment_count>
    <who name="">kodatarule</who>
    <bug_when>2025-02-12 20:46:14 +0000</bug_when>
    <thetext>SUMMARY
on a 4K screen when you have scaling to 150% and set &quot;scaled by the system&quot;(it is quite improved in plasma 6.3 even though some blur remains) it glitches all fullscreen/borderless windowed applications/games.

STEPS TO REPRODUCE
1. Have 4K screen set to 150% fractional scaling and set &quot;scaled by the system&quot; for legacy x11 applications 
2. Start a game for example which uses xwayland - most games on steam through proton

OBSERVED RESULT
The game gets locked to 1440p max resolution it doesn&apos;t let you pick 4K

EXPECTED RESULT
To be able to pick 4K resolution(3840x2160) without issues

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-1-cachyos-bmq (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2398943</commentid>
    <comment_count>1</comment_count>
    <who name="">unhappy-ending</who>
    <bug_when>2025-02-17 13:58:50 +0000</bug_when>
    <thetext>I&apos;m having this same exact issue. Games launched via Steam Proton are being rendered in 1440p at 150% for me which is actually breaking interlaced 3D that requires native resolution. I have not tested native games.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2398958</commentid>
    <comment_count>2</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2025-02-17 14:24:07 +0000</bug_when>
    <thetext>&gt;1. Have 4K screen set to 150% fractional scaling and set &quot;scaled by the system&quot; for legacy x11 applications 

setting this means it is expected that the application will not see the native resolution, as the system is scaling it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2398959</commentid>
    <comment_count>3</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2025-02-17 14:25:07 +0000</bug_when>
    <thetext>Choose the other scaling setting if you want games to have native resolution</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2398979</commentid>
    <comment_count>4</comment_count>
    <who name="">unhappy-ending</who>
    <bug_when>2025-02-17 14:53:36 +0000</bug_when>
    <thetext>(In reply to David Edmundson from comment #3)
&gt; Choose the other scaling setting if you want games to have native resolution

That was the first thing I tried and it still doesn&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2398981</commentid>
    <comment_count>5</comment_count>
    <who name="">unhappy-ending</who>
    <bug_when>2025-02-17 14:57:18 +0000</bug_when>
    <thetext>Had to log out and back in for the change to take effect. Maybe it should be noted somewhere when changing the setting?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2401962</commentid>
    <comment_count>6</comment_count>
    <who name="">kodatarule</who>
    <bug_when>2025-02-24 15:05:54 +0000</bug_when>
    <thetext>I have also observed that his affects native wayland(you can use proton cachyos to try the native wayland and the game is locked to 1440p regardless of the global scaling chosen)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2404390</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-03-03 21:20:24 +0000</bug_when>
    <thetext>My mistake: after talking with a KWin developer, it&apos;s actually not expected that it fails to take effect immediately. That&apos;s what should be fixed, so I&apos;m changing the title to reflect it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2404620</commentid>
    <comment_count>8</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-03-04 16:10:04 +0000</bug_when>
    <thetext>Git commit 6913ab9e4f34a99cc1e07077a9d85feacc05dc10 by Xaver Hugl.
Committed on 04/03/2025 at 15:54.
Pushed by zamundaaa into branch &apos;master&apos;.

workspace: watch kdeglobals and update Xwayland scale accordingly

The code assumed that KScreen would send KWin a new output configuration, and thus
Workspace::applyOutputConfiguration would run when the Xwayland scale setting is changed.

If you only change that setting and no other output setting though, that doesn&apos;t happen,
so until this setting is moved into the normal configuration mechanism, we have to update
the Xwayland scale when the config value in kdeglobals changes.

M  +1    -0    src/main.cpp
M  +6    -0    src/main.h
M  +22   -11   src/workspace.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/6913ab9e4f34a99cc1e07077a9d85feacc05dc10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2404629</commentid>
    <comment_count>9</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-03-04 17:19:11 +0000</bug_when>
    <thetext>Git commit 86264ec740cb035fb1213771fe686af2b9099c80 by Xaver Hugl.
Committed on 04/03/2025 at 17:03.
Pushed by zamundaaa into branch &apos;Plasma/6.3&apos;.

workspace: watch kdeglobals and update Xwayland scale accordingly

The code assumed that KScreen would send KWin a new output configuration, and thus
Workspace::applyOutputConfiguration would run when the Xwayland scale setting is changed.

If you only change that setting and no other output setting though, that doesn&apos;t happen,
so until this setting is moved into the normal configuration mechanism, we have to update
the Xwayland scale when the config value in kdeglobals changes.
(cherry picked from commit 6913ab9e4f34a99cc1e07077a9d85feacc05dc10)

M  +1    -0    src/main.cpp
M  +6    -0    src/main.h
M  +22   -11   src/workspace.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/86264ec740cb035fb1213771fe686af2b9099c80</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>