<?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>464776</bug_id>
          
          <creation_ts>2023-01-25 00:40:30 +0000</creation_ts>
          <short_desc>Twice as many scroll events as expected on Wayland</short_desc>
          <delta_ts>2023-02-06 23:12:47 +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>5.26.90</version>
          <rep_platform>Debian unstable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=464592</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression, wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="legimet">avelingker</reporter>
          <assigned_to name="John Brooks">john</assigned_to>
          <cc>avelingker</cc>
    
    <cc>david</cc>
    
    <cc>john</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>5.27</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2201449</commentid>
    <comment_count>0</comment_count>
    <who name="legimet">avelingker</who>
    <bug_when>2023-01-25 00:40:30 +0000</bug_when>
    <thetext>After updating to the Plasma 5.27 beta release, scrolling events occur twice as much as expected. This only occurs on Wayland, and happens with both Xwayland and native Wayland applications. For instance, scrolling through the task manager on the bottom panel goes through the windows two at a time. The same thing happens in other applications (e.g. scrolling through the inventory list in the game Enigma). I am using a Logitech M720 wireless mouse.

STEPS TO REPRODUCE
1. Scroll through the windows listed on the bottom panel.

OBSERVED RESULT
Scrolls through windows two at a time.

EXPECTED RESULT
Scrolls through windows one at a time.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201912</commentid>
    <comment_count>1</comment_count>
    <who name="John Brooks">john</who>
    <bug_when>2023-01-25 18:40:00 +0000</bug_when>
    <thetext>Can you run this in a terminal:
WAYLAND_DEBUG=1 konsole

A new terminal will open, move it so you can see both terminals. Scroll down with your mouse once and then press ctrl+d to close the terminal (so it doesn&apos;t flood it with more events). You&apos;ll see some events like this:
[3984022.430] wl_pointer@22.axis_source(0)
[3984022.439] wl_pointer@22.axis_discrete(0, 1)
[3984022.446] wl_pointer@22.axis(665303204, 0, 15.00000000)
[3984022.451] wl_pointer@22.frame()

Paste the events you get when scrolling once.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201931</commentid>
    <comment_count>2</comment_count>
    <who name="John Brooks">john</who>
    <bug_when>2023-01-25 20:05:53 +0000</bug_when>
    <thetext>Please see my comment above</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201966</commentid>
    <comment_count>3</comment_count>
    <who name="legimet">avelingker</who>
    <bug_when>2023-01-25 21:38:13 +0000</bug_when>
    <thetext>[1769264.988] wl_pointer@22.axis_source(0)
[1769265.028] wl_pointer@22.axis(20683845, 0, -15.00000000)
[1769265.045] wl_pointer@22.frame()
[1769292.491]  -&gt; wl_surface@27.frame(new id wl_callback@44)
[1769292.554]  -&gt; wl_surface@27.attach(wl_buffer@35, 0, 0)
[1769292.579]  -&gt; wl_surface@27.damage_buffer(0, 76, 1680, 901)
[1769292.603]  -&gt; wl_surface@27.commit()
[1769292.642] wl_pointer@22.axis_source(0)
[1769292.668] wl_pointer@22.axis(20683861, 0, -3.75000000)
[1769292.692] wl_pointer@22.frame()
[1769303.465] wl_display@1.delete_id(44)
[1769303.518] wl_callback@44.done(20683028)
[1769316.424]  -&gt; wl_surface@27.frame(new id wl_callback@44)
[1769316.515]  -&gt; wl_surface@27.attach(wl_buffer@45, 0, 0)
[1769316.543]  -&gt; wl_surface@27.damage_buffer(0, 76, 1680, 901)
[1769316.574]  -&gt; wl_surface@27.commit()
[1769316.637] wl_buffer@38.release()
[1769316.670] wl_pointer@22.axis_source(0)
[1769316.692] wl_pointer@22.axis(20683877, 0, -3.75000000)
[1769316.718] wl_pointer@22.frame()
[1769316.756] wl_pointer@22.axis_source(0)
[1769316.775] wl_pointer@22.axis(20683893, 0, -3.75000000)
[1769316.793] wl_pointer@22.frame()
[1769344.733]  -&gt; wl_surface@27.attach(wl_buffer@38, 0, 0)
[1769344.803]  -&gt; wl_surface@27.damage_buffer(0, 76, 1680, 901)
[1769344.833]  -&gt; wl_surface@27.commit()
[1769349.119] wl_display@1.delete_id(44)
[1769349.262] wl_callback@44.done(20683920)
[1769349.317] wl_buffer@35.release()
[1769349.356] wl_pointer@22.axis_source(0)
[1769349.383] wl_pointer@22.axis_discrete(0, -1)
[1769349.406] wl_pointer@22.axis(20683921, 0, -3.75000000)
[1769349.432] wl_pointer@22.frame()
[1769374.324]  -&gt; wl_surface@27.frame(new id wl_callback@44)
[1769374.438]  -&gt; wl_surface@27.attach(wl_buffer@35, 0, 0)
[1769374.476]  -&gt; wl_surface@27.damage_buffer(0, 76, 1680, 901)
[1769374.508]  -&gt; wl_surface@27.commit()
[1769379.731] wl_buffer@45.release()
[1769410.749] wl_display@1.delete_id(44)
[1769410.856] wl_callback@44.done(20683986)
[1769410.964] wl_buffer@38.release()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201972</commentid>
    <comment_count>4</comment_count>
    <who name="John Brooks">john</who>
    <bug_when>2023-01-25 21:59:07 +0000</bug_when>
    <thetext>What is your kernel version? `uname -a`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201974</commentid>
    <comment_count>5</comment_count>
    <who name="legimet">avelingker</who>
    <bug_when>2023-01-25 22:10:19 +0000</bug_when>
    <thetext>(In reply to John Brooks from comment #4)
&gt; What is your kernel version? `uname -a`

6.1.0-2-amd64

Also, I noticed that scrolling works fine in Enigma (the game that I mentioned) if I use SDL_VIDEODRIVER=wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201978</commentid>
    <comment_count>6</comment_count>
    <who name="John Brooks">john</who>
    <bug_when>2023-01-25 22:38:58 +0000</bug_when>
    <thetext>I see what happened. This was already fixed, but the commit that fixed it was added immediately after the beta was tagged. https://invent.kde.org/plasma/kwin/-/commit/9f494da9fa29fd2a8abd34e5bde95d531026301e

The parent (previous) commit is the beta version. Sorry about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202006</commentid>
    <comment_count>7</comment_count>
    <who name="legimet">avelingker</who>
    <bug_when>2023-01-26 04:47:56 +0000</bug_when>
    <thetext>Thanks. I patched the Debian kwin package with that commit, and scrolling works normally in the Wayland session. However, I still get too many scroll events when using X11 in KDE applications such as Konsole and Dolphin. I will report a separate bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202033</commentid>
    <comment_count>8</comment_count>
    <who name="legimet">avelingker</who>
    <bug_when>2023-01-26 06:52:51 +0000</bug_when>
    <thetext>(In reply to legimet from comment #7)
&gt; Thanks. I patched the Debian kwin package with that commit, and scrolling
&gt; works normally in the Wayland session. However, I still get too many scroll
&gt; events when using X11 in KDE applications such as Konsole and Dolphin. I
&gt; will report a separate bug.

Actually, I think this is probably a Qt issue. It happens in Qt applications like Wireshark that don&apos;t use KDE libraries, when running on X11 regardless of whether I&apos;m in a Plasma session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205577</commentid>
    <comment_count>9</comment_count>
    <who name="John Brooks">john</who>
    <bug_when>2023-02-06 23:10:52 +0000</bug_when>
    <thetext>*** Bug 465299 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>