Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSX] OS's mouse pointer still shows up is some scenarios #4420

Closed
DorpsGek opened this issue Jan 17, 2011 · 5 comments
Closed

[OSX] OS's mouse pointer still shows up is some scenarios #4420

DorpsGek opened this issue Jan 17, 2011 · 5 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

avd opened the ticket and wrote:

Steps to reproduce this issue:

  1. Open a viewport
  2. Drag the map with the right mouse button

If you keep dragging the map, you should probably see that the mouse pointer changes into an os pointer.
In my testcase, this doesn't happen at all if the mouse moves very slowly,
while if the mouse if moved very fast, this bug almost immediately occurs.

Reported version: trunk
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/4420
@DorpsGek
Copy link
Member Author

avd wrote:

This bug is related to #2585 if someone is interested


This comment was imported from FlySpray: https://bugs.openttd.org/task/4420#comment9480

@DorpsGek
Copy link
Member Author

Rubidium wrote:

Related, or does this bug by chance get introduced by r21578?


This comment was imported from FlySpray: https://bugs.openttd.org/task/4420#comment9481

@DorpsGek
Copy link
Member Author

avd wrote:

Hmm, it seems that the bug is introduced in r21578


This comment was imported from FlySpray: https://bugs.openttd.org/task/4420#comment9483

@DorpsGek
Copy link
Member Author

Matthieu wrote:

I wasted many time on that bug. Finally it was not so hard (if i made no mistake). There are two things to take into account.

Firstly, the application receive a cursor update event when the pointer is virtually out of the window. Consequently, OTTD hide its own cursor.
Secondly, the application receive mouse entered & mouse exited events when virtually moving out of the window. I think that run this way but it doesn't matter:
- mouse exited first;
- qz_warpcursor is called when processing a mouse dragged (which virtually reposition the cursor inside the window);
- mouse entered as a consequence.

So i decided to catch those events and stop propagation to the application when dragging ie when _cursor.fix_at is true.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4420#comment12035

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 5, 2013

michi_cc closed the ticket.

Reason for closing: Fixed

In r25659.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4420

@DorpsGek DorpsGek closed this as completed Aug 5, 2013
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant