OpenTTD

Tasklist

FS#6558 - "...scrollwheel: Scroll map" causes window focus to follow mouse on macOS 10.12.4 (Sierra)

Attached to Project: OpenTTD
Opened by andythenorth (andythenorth) - Saturday, 15 April 2017, 14:24 GMT
Type Bug
Category Core
Status New
Assigned To No-one
Operating System Mac OS X
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

On macOS (OS X) 10.12.4 (Sierra) setting "Function of scrollwheel" to "Scroll map" causes the game window focus to follow the mouse cursor, intermittently.

Present in multiple OpenTTD versions, self-compiled (around r27848), and from compile farm (1.6.1). Cannot reproduce with 1.3.0 (doesn't mean it's not there, but couldn't trigger it).

Using a trackpad with two-finger scroll, not a scrollwheel, but eh, should be same result to the OS.
I have tried independently toggling all the OS-level trackpad and scroll settings, including the accessibility settings, but nothing I tried made a difference.
No access right now to older OS X versions to test, but I can do that at another time.

The effect *is* intermittent, but relatively easy to reproduce.
- can be triggered always on the newgrf window at game start screen, by opening newgrf settings window, then a parameters window (which will initially open behind the newgrf settings window, incorrectly)
- can be triggered in game by e.g. opening a depot, then 'build vehicles'. Focus-follows-mouse tends to stop periodically, for undetermined reasons, but can be reliably re-started by using scroll on a game window such as depot or vehicles.

I have not been able to reproduce the issue with "Function of scrollwheel: Zoom map" or "Function of scrollwheel: Off".
This task depends upon

Comment by andythenorth (andythenorth) - Saturday, 15 April 2017, 15:07 GMT
Hard to understand wtf I'm talking about?

Video here http://dev.openttdcoop.org/attachments/download/8417/focus-follows-mouse.mov

Shows varying behaviour of newgrf window depending on scroll setting (I am not clicking mouse to gain window focus in the first example, just moving it). Same behaviour happens for windows during gameplay.
Comment by andythenorth (andythenorth) - Saturday, 15 April 2017, 19:38 GMT

Loading...