<?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>477177</bug_id>
          
          <creation_ts>2023-11-18 08:09:35 +0000</creation_ts>
          <short_desc>Strange scaling behavior with xwayland scaling settings on mixed DPI setups</short_desc>
          <delta_ts>2024-06-25 22:57:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>multi-screen</component>
          <version>5.27.80</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>474738</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=483401</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>qt6</keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="[object Object]">rohan</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>nate</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>2266752</commentid>
    <comment_count>0</comment_count>
    <who name="[object Object]">rohan</who>
    <bug_when>2023-11-18 08:09:35 +0000</bug_when>
    <thetext>SUMMARY
When on a mixed DPI setup (i.e. two 4k monitors at 195% and one 1440p ultrawide at 130%) and the xwayland &quot;apply scaling themselves&quot; option is set, some clients (including those not running on xwayland) render at an extremely high resolution (in this case, 5159x2184). If only one display is enabled, or all displays are using the same scaling factor, the problem goes away and windows are rendered at the native resolution of the monitor again.

Some examples of non-xwayland apps being affected by this are:
- Gamescope
- Minecraft (using `glfw_wayland`)

I&apos;ve had this issue since I started using the Plasma wayland session, but I haven&apos;t gotten around to making a bug report until now.

STEPS TO REPRODUCE
1. Have a mixed DPI setup
2. Set different DPI levels on two monitors
3. Open 

OBSERVED RESULT
Games/apps rendering at an extremely high resolution

EXPECTED RESULT
Games/apps rendering at the native resolution of the monitor, as they do when all monitor have the same scaling factor

SOFTWARE/OS VERSIONS
Linux: 6.6.1
(available in About System)
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
Marked severity as major as this effects gaming on all multi-dpi setups, as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2268654</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-11-26 16:25:09 +0000</bug_when>
    <thetext>Could you attach a screenshot of the all screens that shows the issue?

Possibly a variant of Bug 474738?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2270456</commentid>
    <comment_count>2</comment_count>
    <who name="[object Object]">rohan</who>
    <bug_when>2023-12-02 00:55:14 +0000</bug_when>
    <thetext>I&apos;m not sure how I could show the issue, since it&apos;s a problem with the resolution of the windows (they otherwise work fine). Is there a debug app that displays the resolution it&apos;s rendering at or something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2274609</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-12-17 03:45:45 +0000</bug_when>
    <thetext>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 &gt; 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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2277469</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-01-01 03:46:07 +0000</bug_when>
    <thetext>This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED &gt; 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

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2305957</commentid>
    <comment_count>5</comment_count>
    <who name="[object Object]">rohan</who>
    <bug_when>2024-03-27 03:02:37 +0000</bug_when>
    <thetext>I&apos;ve done more testing and this doesn&apos;t seem to apply to wayland-native apps. Not sure if something got fixed, or if I was just testing it incorrectly before. Running minecraft with glfw-wayland will render at the native 3440x1440 resolution of my monitor while running it in xwayland will set the resolution to 5159x2184. This seems to hold true for every other game I&apos;ve tested, so I&apos;m currently running all my games in gamescope so they render at the correct resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319073</commentid>
    <comment_count>6</comment_count>
    <who name="[object Object]">rohan</who>
    <bug_when>2024-05-12 06:06:26 +0000</bug_when>
    <thetext>Someone else on Reddit seems to also be having this issue: https://reddit.com/r/linux_gaming/comments/1cp7hgu/plasma_multimonitor_gaming_woes/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2331828</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-06-25 22:56:57 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>