<?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>483067</bug_id>
          
          <creation_ts>2024-03-10 03:55:46 +0000</creation_ts>
          <short_desc>Fractional scaling causes unwanted mouse acceleration in games</short_desc>
          <delta_ts>2025-08-13 17:22:42 +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>input</component>
          <version>6.1.3</version>
          <rep_platform>Arch Linux</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>qt6</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="pete">hayyash</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>berwick1999</cc>
    
    <cc>hayyash</cc>
    
    <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>sunabouzu.desert</cc>
    
    <cc>walkonfire81</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/6d633e4bd19a32390eb0da26a50e881eb7fbb36d</cf_commitlink>
          <cf_versionfixedin>6.2.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2298129</commentid>
    <comment_count>0</comment_count>
    <who name="pete">hayyash</who>
    <bug_when>2024-03-10 03:55:46 +0000</bug_when>
    <thetext>SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Set monitor scaling to 125%. Turn off pointer acceleration in plasma settings.
2. Load CS2 or another FPS game
3. Test for mouse acceleration. I used this method: https://www.youtube.com/watch?v=5Cy8G2ElLOk

OBSERVED RESULT
pointer does not return to starting location with different mouse movement speeds. Significant mouse acceleration is present unless monitor is set to 100% scaling.

EXPECTED RESULT
pointer should not exhibit acceleration when using scaling.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2342612</commentid>
    <comment_count>1</comment_count>
    <who name="Berwick">berwick1999</who>
    <bug_when>2024-08-02 19:05:31 +0000</bug_when>
    <thetext>I&apos;ve still found bug to be present in KDE Plasma version 6.1.3. Mouse acceleration is set to Flat and is not present across the desktop environment but acceleration can be felt in games when Fractional scaling is in use. 

Using a 4k monitor at 175% scaling, mouse acceleration can be felt in native linux games as well as games running through proton. The only game I don&apos;t see acceleration present with fractional scaling is Minecraft. 

Setting the scaling to 100% does resolve the acceleration issues but they return if ever turning the scaling to 125% or 175%. I&apos;ve not tested 200% or 150%.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362452</commentid>
    <comment_count>2</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-03 19:40:14 +0000</bug_when>
    <thetext>i can confirm that i always thought that was kwin issue , i have another bug reported about the mouse freeze in some games , gnome and x11(kde) don&apos;t suffer from that ,  it has to be something with kwin , set scaling to 100% fixes the issue indeed .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362815</commentid>
    <comment_count>3</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-10-04 15:45:00 +0000</bug_when>
    <thetext>What do you have the scaling setting for legacy applications set to? &quot;Apply scaling themselves&quot;, or &quot;scaled by the system&quot;? Does changing it make a difference?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362821</commentid>
    <comment_count>4</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-04 15:56:29 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #3)
&gt; What do you have the scaling setting for legacy applications set to? &quot;Apply
&gt; scaling themselves&quot;, or &quot;scaled by the system&quot;? Does changing it make a
&gt; difference?

Apply scaling themselves , on my system .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362824</commentid>
    <comment_count>5</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-04 16:05:03 +0000</bug_when>
    <thetext>(In reply to Elie Dadde from comment #4)
&gt; (In reply to Zamundaaa from comment #3)
&gt; &gt; What do you have the scaling setting for legacy applications set to? &quot;Apply
&gt; &gt; scaling themselves&quot;, or &quot;scaled by the system&quot;? Does changing it make a
&gt; &gt; difference?
&gt; 
&gt; Apply scaling themselves , on my system .

Changing it do make a difference but u can&apos;t play at 4K  Anymore games resolution goes down to 2k .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362885</commentid>
    <comment_count>6</comment_count>
    <who name="Berwick">berwick1999</who>
    <bug_when>2024-10-04 19:43:46 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #3)
&gt; What do you have the scaling setting for legacy applications set to? &quot;Apply
&gt; scaling themselves&quot;, or &quot;scaled by the system&quot;? Does changing it make a
&gt; difference?

Apply scaling themselves results in unwanted mouse acceleration.
Scaled by the system results has no mouse acceleration (which is good), but has a lower possible max resolution for the game which is tied to your scaling value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362905</commentid>
    <comment_count>7</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-10-04 22:12:07 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6564</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362906</commentid>
    <comment_count>8</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-10-04 22:14:02 +0000</bug_when>
    <thetext>There&apos;s no acceleration, but the unaccelerated values were scaled. That MR makes it independent of the screen&apos;s scaling value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362922</commentid>
    <comment_count>9</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-10-04 23:41:31 +0000</bug_when>
    <thetext>Git commit 47f800c12786d4b04a2e812785784d41e39bbfbc by Xaver Hugl.
Committed on 04/10/2024 at 22:11.
Pushed by zamundaaa into branch &apos;master&apos;.

wayland/relativepointer: don&apos;t scale non-accelerated pointer values

Normally, pointer values are in logical units, which get implicitly scaled with the scale of
the screen, so scaling them when scaling Xwayland makes sense. If the pointer moves too fast
for the user with that scaling, they will simply use the libinput pointer acceleration setting
to reduce that speed in a manner that&apos;s uniform for all their screens.
However, unaccelerated values are not affected by that setting, and thus they should also not
be affected by the screen&apos;s scale. This commit removes that scaling for Xwayland, which matches
SDL&apos;s usage of the value in Wayland native mode and brings it in line with user expectations.

M  +2    -2    src/wayland/relativepointer_v1.cpp

https://invent.kde.org/plasma/kwin/-/commit/47f800c12786d4b04a2e812785784d41e39bbfbc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362923</commentid>
    <comment_count>10</comment_count>
    <who name="Berwick">berwick1999</who>
    <bug_when>2024-10-04 23:46:06 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #9)
That is incredible, such a fast fix. I can&apos;t wait to check out these changes. Thank you for your work Zamundaaa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362924</commentid>
    <comment_count>11</comment_count>
    <who name="pete">hayyash</who>
    <bug_when>2024-10-04 23:49:22 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #9)
&gt; Git commit 47f800c12786d4b04a2e812785784d41e39bbfbc by Xaver Hugl.
&gt; Committed on 04/10/2024 at 22:11.
&gt; Pushed by zamundaaa into branch &apos;master&apos;.
&gt; 
&gt; wayland/relativepointer: don&apos;t scale non-accelerated pointer values
&gt; 
&gt; Normally, pointer values are in logical units, which get implicitly scaled
&gt; with the scale of
&gt; the screen, so scaling them when scaling Xwayland makes sense. If the
&gt; pointer moves too fast
&gt; for the user with that scaling, they will simply use the libinput pointer
&gt; acceleration setting
&gt; to reduce that speed in a manner that&apos;s uniform for all their screens.
&gt; However, unaccelerated values are not affected by that setting, and thus
&gt; they should also not
&gt; be affected by the screen&apos;s scale. This commit removes that scaling for
&gt; Xwayland, which matches
&gt; SDL&apos;s usage of the value in Wayland native mode and brings it in line with
&gt; user expectations.
&gt; 
&gt; M  +2    -2    src/wayland/relativepointer_v1.cpp
&gt; 
&gt; https://invent.kde.org/plasma/kwin/-/commit/
&gt; 47f800c12786d4b04a2e812785784d41e39bbfbc

Thank you so much Zamundaaa! I hadn&apos;t thought of trying system scaling until reading your post, but CS2 crashed my whole system when I tried it. Not sure if kwin or amdgpu but whatever. Really glad to see fixed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362926</commentid>
    <comment_count>12</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-10-04 23:56:40 +0000</bug_when>
    <thetext>Git commit 6d633e4bd19a32390eb0da26a50e881eb7fbb36d by Xaver Hugl.
Committed on 04/10/2024 at 23:41.
Pushed by zamundaaa into branch &apos;Plasma/6.2&apos;.

wayland/relativepointer: don&apos;t scale non-accelerated pointer values

Normally, pointer values are in logical units, which get implicitly scaled with the scale of
the screen, so scaling them when scaling Xwayland makes sense. If the pointer moves too fast
for the user with that scaling, they will simply use the libinput pointer acceleration setting
to reduce that speed in a manner that&apos;s uniform for all their screens.
However, unaccelerated values are not affected by that setting, and thus they should also not
be affected by the screen&apos;s scale. This commit removes that scaling for Xwayland, which matches
SDL&apos;s usage of the value in Wayland native mode and brings it in line with user expectations.


(cherry picked from commit 47f800c12786d4b04a2e812785784d41e39bbfbc)

Co-authored-by: Xaver Hugl &lt;xaver.hugl@gmail.com&gt;

M  +2    -2    src/wayland/relativepointer_v1.cpp

https://invent.kde.org/plasma/kwin/-/commit/6d633e4bd19a32390eb0da26a50e881eb7fbb36d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362997</commentid>
    <comment_count>13</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-05 09:39:07 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #12)
&gt; Git commit 6d633e4bd19a32390eb0da26a50e881eb7fbb36d by Xaver Hugl.
&gt; Committed on 04/10/2024 at 23:41.
&gt; Pushed by zamundaaa into branch &apos;Plasma/6.2&apos;.
&gt; 
&gt; wayland/relativepointer: don&apos;t scale non-accelerated pointer values
&gt; 
&gt; Normally, pointer values are in logical units, which get implicitly scaled
&gt; with the scale of
&gt; the screen, so scaling them when scaling Xwayland makes sense. If the
&gt; pointer moves too fast
&gt; for the user with that scaling, they will simply use the libinput pointer
&gt; acceleration setting
&gt; to reduce that speed in a manner that&apos;s uniform for all their screens.
&gt; However, unaccelerated values are not affected by that setting, and thus
&gt; they should also not
&gt; be affected by the screen&apos;s scale. This commit removes that scaling for
&gt; Xwayland, which matches
&gt; SDL&apos;s usage of the value in Wayland native mode and brings it in line with
&gt; user expectations.
&gt; 
&gt; 
&gt; (cherry picked from commit 47f800c12786d4b04a2e812785784d41e39bbfbc)
&gt; 
&gt; Co-authored-by: Xaver Hugl &lt;xaver.hugl@gmail.com&gt;
&gt; 
&gt; M  +2    -2    src/wayland/relativepointer_v1.cpp
&gt; 
&gt; https://invent.kde.org/plasma/kwin/-/commit/
&gt; 6d633e4bd19a32390eb0da26a50e881eb7fbb36d

update on the issue , this didn&apos;t fix the behavior inside some games , scaling on 4k mouse still causes mouses acceleration freeze .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2362999</commentid>
    <comment_count>14</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-05 10:02:02 +0000</bug_when>
    <thetext>(In reply to Elie Dadde from comment #13)
&gt; (In reply to Zamundaaa from comment #12)
&gt; &gt; Git commit 6d633e4bd19a32390eb0da26a50e881eb7fbb36d by Xaver Hugl.
&gt; &gt; Committed on 04/10/2024 at 23:41.
&gt; &gt; Pushed by zamundaaa into branch &apos;Plasma/6.2&apos;.
&gt; &gt; 
&gt; &gt; wayland/relativepointer: don&apos;t scale non-accelerated pointer values
&gt; &gt; 
&gt; &gt; Normally, pointer values are in logical units, which get implicitly scaled
&gt; &gt; with the scale of
&gt; &gt; the screen, so scaling them when scaling Xwayland makes sense. If the
&gt; &gt; pointer moves too fast
&gt; &gt; for the user with that scaling, they will simply use the libinput pointer
&gt; &gt; acceleration setting
&gt; &gt; to reduce that speed in a manner that&apos;s uniform for all their screens.
&gt; &gt; However, unaccelerated values are not affected by that setting, and thus
&gt; &gt; they should also not
&gt; &gt; be affected by the screen&apos;s scale. This commit removes that scaling for
&gt; &gt; Xwayland, which matches
&gt; &gt; SDL&apos;s usage of the value in Wayland native mode and brings it in line with
&gt; &gt; user expectations.
&gt; &gt; 
&gt; &gt; 
&gt; &gt; (cherry picked from commit 47f800c12786d4b04a2e812785784d41e39bbfbc)
&gt; &gt; 
&gt; &gt; Co-authored-by: Xaver Hugl &lt;xaver.hugl@gmail.com&gt;
&gt; &gt; 
&gt; &gt; M  +2    -2    src/wayland/relativepointer_v1.cpp
&gt; &gt; 
&gt; &gt; https://invent.kde.org/plasma/kwin/-/commit/
&gt; &gt; 6d633e4bd19a32390eb0da26a50e881eb7fbb36d
&gt; 
&gt; update on the issue , this didn&apos;t fix the pointer  behavior inside some games ,
&gt; scaling  still  causes  mouse  acceleration issues .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2363000</commentid>
    <comment_count>15</comment_count>
    <who name="Berwick">berwick1999</who>
    <bug_when>2024-10-05 10:07:22 +0000</bug_when>
    <thetext>Is there a link to the ticket about the mouse freezing? I&apos;ve net experienced that, just the unexpected acceleration. I&apos;ve not tested the new changes to Kwin yet as I&apos;m not great at building it myself.

If the mouse freezing is separate to the acceleration, we can move the conversation to that ticket?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2363014</commentid>
    <comment_count>16</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-05 10:49:14 +0000</bug_when>
    <thetext>(In reply to Berwick from comment #15)
&gt; Is there a link to the ticket about the mouse freezing? I&apos;ve net experienced
&gt; that, just the unexpected acceleration. I&apos;ve not tested the new changes to
&gt; Kwin yet as I&apos;m not great at building it myself.
&gt; 
&gt; If the mouse freezing is separate to the acceleration, we can move the
&gt; conversation to that ticket?

i did open the ticket ,however  i didn&apos;t keep track of it , both issues seems related though , as 100% scaling do fix the mouse freezing , and i did build kwin with zamunda&apos;s changes , didn&apos;t really  have any improving  .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2363017</commentid>
    <comment_count>17</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-10-05 11:23:03 +0000</bug_when>
    <thetext>This bug report and the fix are not about any freezes. Your problem is something different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2363020</commentid>
    <comment_count>18</comment_count>
    <who name="Elie Dadde">walkonfire81</who>
    <bug_when>2024-10-05 11:55:09 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #17)
&gt; This bug report and the fix are not about any freezes. Your problem is
&gt; something different.

put the scaling at 100%  , fixes the mouse freeze , somehow it should be related .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2446840</commentid>
    <comment_count>19</comment_count>
    <who name="Denis Shkuratov">sunabouzu.desert</who>
    <bug_when>2025-08-12 17:29:15 +0000</bug_when>
    <thetext>Why this is fixed only for XWayland? What about proton/wine with Wayland? Still an issue on Plasma 6.4.4. 
Switched from X11 and this is unusable behavior.

Can&apos;t relate why this is an issue in first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2446856</commentid>
    <comment_count>20</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2025-08-12 18:57:15 +0000</bug_when>
    <thetext>&gt; What about proton/wine with Wayland? Still an issue on Plasma 6.4.4. 

There shouldn&apos;t be anything to fix our side. If something is shown to be our side, please report a new bug.
However if acceleration works fine in Qt/GTK apps, please report to wine instead</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2447081</commentid>
    <comment_count>21</comment_count>
    <who name="Denis Shkuratov">sunabouzu.desert</who>
    <bug_when>2025-08-13 17:22:42 +0000</bug_when>
    <thetext>(In reply to David Edmundson from comment #20)
&gt; &gt; What about proton/wine with Wayland? Still an issue on Plasma 6.4.4. 
&gt; 
&gt; There shouldn&apos;t be anything to fix our side. If something is shown to be our
&gt; side, please report a new bug.
&gt; However if acceleration works fine in Qt/GTK apps, please report to wine
&gt; instead

I mean, why there is a scale for unaccelerated values anyway? AFAIK there it not an issue for X11 or GNOME desktop.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>