mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25659) -Fix [FS#4420]: [OSX] System mouse cursor could become visible during dragging. (Matthieu)
This commit is contained in:
parent
408c595eb8
commit
d23fdfa403
|
@ -542,6 +542,15 @@ static bool QZ_PollEvent()
|
||||||
_cursor.v_wheel -= (int)([ event deltaY ] * 5 * _settings_client.gui.scrollwheel_multiplier);
|
_cursor.v_wheel -= (int)([ event deltaY ] * 5 * _settings_client.gui.scrollwheel_multiplier);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NSCursorUpdate:
|
||||||
|
case NSMouseEntered:
|
||||||
|
case NSMouseExited:
|
||||||
|
/* Catch these events if the cursor is dragging. During dragging, we reset
|
||||||
|
* the mouse position programmatically, which would trigger OS X to show
|
||||||
|
* the default arrow cursor if the events are propagated. */
|
||||||
|
if (_cursor.fix_at) break;
|
||||||
|
/* FALL THROUGH */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
[ NSApp sendEvent:event ];
|
[ NSApp sendEvent:event ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue