myelin / rpcemu-macos

Phil Pearson's fork of https://marutan.net/rpcemu/ with macOS patches from Timothy Coltman
GNU General Public License v2.0
6 stars 0 forks source link

Thinks mouse is held down when switching back from another app? #10

Open gingerbeardman opened 5 years ago

gingerbeardman commented 5 years ago

Most often I see a selection marquee which means this has happened.

Reproduce

Workaround

or

myelin commented 5 years ago

Oddly, I used to get this all the time, but I can't reproduce it right now.

gingerbeardman commented 5 years ago

I'll make a video for tomorrow

gingerbeardman commented 5 years ago

Video: https://imgur.com/a/ubuwEKk

Just stack some windows and click on an overlaying one?

Septercius commented 5 years ago

I can't reproduce it either. It was an issue with earlier versions of the patch, but I fixed that particular issue, which I think someone on Stardot kindly identified for me.

gingerbeardman commented 5 years ago

I'm happy to try another build when one becomes available

gingerbeardman commented 5 years ago

This seems to be related to #6 (now retitled "Missed mouse clicks")

If I use artificially long single-clicks to switch apps, then everything is fine.

I always use Magic Mouse and can reproduce every time.

@myelin were you using different clicking devices when you were able to reproduce compared to not?

myelin commented 5 years ago

I haven't pulled in Timothy's latest patch, but in my current build, I can reproduce this by trying to change the file type of a bunch of files:

I'll pull in the latest patch and see if this fixes it, but this seems to reliably reproduce it for me. This is with the -pp2 recompiler release.

gingerbeardman commented 5 years ago

@myelin does it do the same if you use artificially long mouse clicks?

myelin commented 5 years ago

After applying the patch, in RO5.27 under either the recompiler or interpreter build, even a single ctrl-click now triggers this behaviour. I tried making it a long click, but the same thing happened. I'm using the touchpad on a 2015 MBP.

If I plug in an external mouse and use the real middle button, everything works fine. Could this be a touchpad-specific thing? Or are you seeing it with a real mouse too?

gingerbeardman commented 5 years ago

I haven't used a touch pad with RPCEmu. Just a Magic Mouse. That's kind of a touch device though right? Hmm.

gingerbeardman commented 5 years ago

Still present in 0.9.1-pp3

I still think this is related to #6

The easiest way to reproduce is to move the mouse horizontally across the desktop and left click whilst continuing to move the mouse. Not so easy with touch pad.

Recording https://imgur.com/a/xb7yixR

gingerbeardman commented 5 years ago

If I do the click-whilst-moving test using a slightly longer click depress, then this does not happen.

Recording: https://imgur.com/a/SicPPFQ

gingerbeardman commented 5 years ago

Tested (identical results)

zedtoo-de commented 5 years ago

I don't know if it's relevant, but...

Control-clicking with a real mouse (i.e. not a touchpad) starts a click-and drag, which is finished by clicking on Adjust. I don't recall seeing this documented anywhere, but it might explain some of the oddities we're seeing (e.g. it may be that RPCEmu is seeing keyboard events as well as mouse movement when you switch to another application).

gingerbeardman commented 5 years ago

I'm not sure; I switch apps by clicking only. The issue doesn't happen if I switch apps by Cmd+Tab (not Control).

Unless there are spurious keyboard events happening?

But really I think this is all tied to the mouse down/up sensing, and the time interval between the two. Is that in Qt?