Port KDecoration::Decoration::wheelEvent away from using event->pos
Open, Needs TriagePublic

Description

A position on a wheel event doesn't make sense especially with trackpads. So it's being removed.

Unfortunately as kwin is faking windows at fake positions this isn't trivial.
I think we'll have to cache position from the mouse moves? Or map from global?

From the QWheelEvent docs:

The functions position() and globalPosition() return the mouse cursor's location at the time of the event.

KDecoration checks whether this position is any of the buttons and if yes forwards the even to the button.

This usage makes perfect sense to me, so I don't think there's anything to do here

nicolasfella moved this task from Backlog to Done on the KF6 board.Feb 18 2023, 10:51 PM