Not specifying the window only for wheel events make the code inconsistent. So mouse movement can go to a window A but mouse wheel events to a window B.
It also breaks the contract of the method dispatchPointerEvent. Its first parameter is the QWindow where events are supposed to go to. It should obey it.
Not specifying the window only for wheel events make the code inconsistent. So mouse movement can go to a window A but mouse wheel events to a window B.
It also breaks the contract of the method dispatchPointer Event. Its first parameter is the QWindow where events are supposed to go to. It should obey it.