Summary: | Twice as many scroll events as expected on Wayland | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | legimet <avelingker> |
Component: | input | Assignee: | John Brooks <john> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | avelingker, david, john, nate |
Priority: | NOR | Keywords: | regression, wayland |
Version: | 5.26.90 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=464592 | ||
Latest Commit: | Version Fixed In: | 5.27 | |
Sentry Crash Report: |
Description
legimet
2023-01-25 00:40:30 UTC
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't flood it with more events). You'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. Please see my comment above [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] -> wl_surface@27.frame(new id wl_callback@44) [1769292.554] -> wl_surface@27.attach(wl_buffer@35, 0, 0) [1769292.579] -> wl_surface@27.damage_buffer(0, 76, 1680, 901) [1769292.603] -> 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] -> wl_surface@27.frame(new id wl_callback@44) [1769316.515] -> wl_surface@27.attach(wl_buffer@45, 0, 0) [1769316.543] -> wl_surface@27.damage_buffer(0, 76, 1680, 901) [1769316.574] -> 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] -> wl_surface@27.attach(wl_buffer@38, 0, 0) [1769344.803] -> wl_surface@27.damage_buffer(0, 76, 1680, 901) [1769344.833] -> 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] -> wl_surface@27.frame(new id wl_callback@44) [1769374.438] -> wl_surface@27.attach(wl_buffer@35, 0, 0) [1769374.476] -> wl_surface@27.damage_buffer(0, 76, 1680, 901) [1769374.508] -> 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() What is your kernel version? `uname -a` (In reply to John Brooks from comment #4) > 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. 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. 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. (In reply to legimet from comment #7) > 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. Actually, I think this is probably a Qt issue. It happens in Qt applications like Wireshark that don't use KDE libraries, when running on X11 regardless of whether I'm in a Plasma session. *** Bug 465299 has been marked as a duplicate of this bug. *** |