mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 16:00:08 +01:00
XQuartz: Send mouse location with scroll events.
This fixes the problem where (0, 0) was sent as the mouse location with scroll
button events causing the event to not reach the client.
(cherry picked from commit c4886fbabc)
This commit is contained in:
parent
d88d16730e
commit
530e7afd4b
1 changed files with 1 additions and 1 deletions
|
|
@ -987,7 +987,7 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe
|
|||
isMouseOrTabletEvent = [e type] == NSLeftMouseDown || [e type] == NSOtherMouseDown || [e type] == NSRightMouseDown ||
|
||||
[e type] == NSLeftMouseUp || [e type] == NSOtherMouseUp || [e type] == NSRightMouseUp ||
|
||||
[e type] == NSLeftMouseDragged || [e type] == NSOtherMouseDragged || [e type] == NSRightMouseDragged ||
|
||||
[e type] == NSMouseMoved || [e type] == NSTabletPoint;
|
||||
[e type] == NSMouseMoved || [e type] == NSTabletPoint || [e type] == NSScrollWheel;
|
||||
|
||||
isTabletEvent = ([e type] == NSTabletPoint) ||
|
||||
(isMouseOrTabletEvent && ([e subtype] == NSTabletPointEventSubtype || [e subtype] == NSTabletProximityEventSubtype));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue