#10166·deskflow

Wayland (Hyprland) server + macOS client: one wheel notch arrives as 16-17 whole clicks (~50 lines) — regression from the whole-click scroll change

Author: CarloCamachoCreated Sep 20, 2026Updated Sep 20, 2026

Sanity checks

  • I have done the sanity checks, and my issue persists.

I checked the latest continuous build (the scroll code in src/lib/platform/EiScreen.cpp is unchanged on master as of today), read the Wayland known-issues discussion, and searched for existing reports.

Deskflow version info

Server (CachyOS):

Deskflow: 1.26.0.437 (ce2f948)
Qt: 6.11.2
System: CachyOS
Session: Hyprland 0.56.2 (Wayland, libei 1.6.0, xdg-desktop-portal-hyprland 1.4.1)

Client (macOS):

Deskflow: 1.26.0.443 (49e6293a)
Qt: 6.11
System: macOS 27.2
Session: Aqua

Build types

  • Server: Community package (AUR deskflow-git, built with paru)
  • Client: Official release (continuous build from GitHub releases)

Deskflow configuration

  • CachyOS / Hyprland (Wayland) as server, macOS 27.2 as client, one display each, Mac on the right
  • Mouse is an Xtrfy M4, which reports both REL_WHEEL and REL_WHEEL_HI_RES

What steps will reproduce the problem?

  1. Run the Deskflow server on a Hyprland/Wayland host, built from master after PR #9993 (22a4b135).
  2. Connect a 1.26.x macOS client with default scroll scaling.
  3. Move the pointer to the Mac and open any long page in a browser.
  4. Scroll one notch. The page jumps ~50 lines, so scrolling feels like it's moving a page at a time.

A fast flick is worse — single events carry up to 81 wheel clicks.

Scrolling on the Linux server itself is smooth, and the Mac's own trackpad is fine, so it's only scroll arriving over Deskflow. Dropping the client's Vertical Scale to 0.1 makes it usable again (~4-5 lines per notch), which looks like the client compensating for the server sending ~10x too much rather than a client-side problem.

Log output

Show log

ceylon
# one slow notch per second, from the server's VERBOSE log
[19:03:57.639] VERBOSE: event: scroll (0.00, -15.00)          # EI smooth input
[19:03:57.639] VERBOSE: event: scroll discrete (0, -15)       # EI discrete input, same notch
[19:03:57.639] VERBOSE: send mouse wheel to "Ians-MacBook-Pro.local" +0,+120
[19:03:57.751] VERBOSE: event: scroll (0.00, -15.00)
[19:03:57.751] VERBOSE: event: scroll discrete (0, -15)
[19:03:57.751] VERBOSE: send mouse wheel to "Ians-MacBook-Pro.local" +0,+2040   # 17 clicks for one notch
[19:03:57.835] VERBOSE: event: scroll (0.00, -15.00)
[19:03:57.835] VERBOSE: event: scroll discrete (0, -15)
[19:03:57.835] VERBOSE: send mouse wheel to "Ians-MacBook-Pro.local" +0,+1920   # 16 clicks
[19:04:03.959] VERBOSE: event: scroll (0.00, 60.00)           # fast flick
[19:04:03.959] VERBOSE: event: scroll discrete (0, 60)
[19:04:03.959] VERBOSE: send mouse wheel to "Ians-MacBook-Pro.local" +0,-9720   # 81 clicks, one event

Summary of the capture (40 notches, client scroll scale at 1.0):

in (px) in discrete on the wire clicks macOS lines
15 15 1920-2040 units 16-17 48-51
15 15 (first notch) 120 units 1 3
60-75 (flick) 60-75 2640-9720 units 22-81 66-243

The same input on the 1.26.0 release build produces 15px * 12 = 180 units = 1.5 clicks = 4 lines per notch, which is what I had before this regression and what I'd expect.

Additional information

The two scroll handlers sharing one ScrollRemainder looks like the cause. onPointerScrollEvent treats it as fractional wheel clicks (10 px == 1 click), while onPointerScrollDiscreteEvent adds the raw discrete value and divides by 120. Hyprland sends 15 for the discrete event, not the 120 the comment assumes, so on every notch the discrete handler adds 15 to the shared pool and never emits anything itself — and the next smooth event then turns that pool into 16-17 whole clicks of 120 units each, delivered as a single event. The first notch sending 120 and the second sending 2040 shows the accumulation nicely.

This is a regression from the 1.26.0 release, introduced by 22a4b135 "Accumulate smooth scroll into full wheel clicks on server" and 4fc72eda (PR #9993). The same code is still on master today, so the latest continuous build is affected too.

Related: #9120, #9975, #9993 (hi-res wheel scroll work) and #9477 / #9479 (same "extra scroll" family on the 1.26 branch).