-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Query: MMB does not release correctly when starting emulation by double-clicking on entry in Configurations panel? #1590
Comments
I cannot recreate this, tried with both native modes and RTG modes. |
Likely a bug then ;) .... visual demonstration using above 3000.uae config... https://www.youtube.com/watch?v=reyTD-hNWOw edit: I can recreate this on the LFS box as well, so it's not nvidia drivers, WM ... it's not something inane like moving the mouse pointer up (towards top) that triggers it? |
Looking at this again, I found a slightly different approach that obviates what I'm referring to...
To me, it looks as though the emulation is not tracking Host mouse position properly ...ie; it doesn't consider mouse pointer has moved outside emulation window? |
Digging this further, running a Save State created from the same 3000.uae config, works as expected ~ unlike test above, MMB releases mouse pointer from emulation window, and RMB is disconnected from emulation ...LMB works as expected, and does not get stolen back by emulation. |
Final sanity check -- Problem is only apparent when starting emulation from the GUI. TIA |
Ah-ha! I found another machination here ~ I can't help but think this is the same bug? To recreate;
This makes me consider that the mouse isn't being completely released from the GUI, when either the F12 key is used, or MMB is employed --- I can only imagine this is the same issue ie;.. first mouse click after using F12 or MMB, is not recognized as expected. HTH |
I still cannot recreate this in the environments I've tested it in: RPI-OS, WSL2, macOS. I suspect it's related to the window manager or something else in the distro your testing with. I'll try it in more environments when I get a chance to see if that's the case. |
Thanks ~ knowing what you've tested against helps clear a path forward for me... ...you should know by now, that my daily drive is debian current on amd64, where I first saw this issue ;) ...you'll see above I'd tested against the LFS build, and could recreate it there (so...IceWM not XFCE4, no debian...but still on x86-64, and in both cases x11 is used).... ....on the same hardware, I booted my USB stick build (based on CachyOS), and compiled/installed amiberry v7.0-RC3 there and retested the scenario -- this issue was not apparent there (using JWM and still on x11...this is Arch based)...working as expected...!! ...so... I followed that bread crumb ... there are so many differences between the 3 OS instances (but just as many likenesses), I think my time here has taught me to check the bleedingly obvious first.... (GUI -> About =) debian Bookworm 12.6 -- SDL2 v2.26.5 ...."that is worth checking".... the LFS build lends itself to this ~ grabbed the SDL2-2.30.6.tar.gz (+ SDL_ttf-release-2.24.0 + SDL_image-release-2.8.4 just to keep in step), compiled and installed --- cleaned, recompile and install amiberry v7.0-RC3 against the newer SDL2 libraries ---> retest this issue ---> no longer apparent, now working as expected...well... ...not quite, the GUI is slow to the order of 1 to 2 seconds of lag to respond (emulation runs fine tho'), BUT, this MMB and mouse focus release issue no longer apparent after moving to the latest SDL2 offerings....(not sure why the GUI is being a dog....little doubt upgrading SDL2 libs with no regard of dependencies could be at play ; I'd need to back-track that locally to find the cause..) BUT...right.... point is, that's all I did ('coz I can) -- move from SDL2-2.28.5 to SDL2-2.30.6, and recompile amiberry = issue no longer present... begs the question, SDL2 version is participle here? HTH |
WSL2 is Debian bookworm, so it uses the same SDL2 version you mentioned above: 2.26.5 None of the above showed the problem to me :) |
Thanks.... (although I don't particularly consider WSL2 in debian mode, to be a 'true' test of debian Bookworm ;) I'll have to keep looking ~ at the end of the day, if nobody else runs into the on debian Bookworm amd64, then it's likely not going to effect anything.... ...I took this instance from Bookworm -> Trixie and that didn't help any ....I guess I'm going to need use the m93p tiny, with a fresh debian Bookworm install, and see if I can nail this down =) |
//...the good thing about living in the country, is you can go outside and scream ~ only the cows & goats look at you ;) ...this is mia culpa on my part ~ I had presumed that revised:
Observation: emulation window 'steals' the mouse back... This does not happen using the ...sorry for the confusion (I'm still serving penance taking the edges off Trixie and I've gotta revert changes in LFS..grrr.... ;) |
Thanks for the extra information. If this is fixed with a newer SDL2 version, it might indicate a bug there. But we'll see if there's a workaround, in that case. |
This wouldn't be a throw back to #1316 by any chance? |
I just confirmed my above speculation. Looking at
Recompile and test ~ MMB release now works as expected (after starting emulation from double-clicking on config entry) That would infer 7840919 is the actual cause here ~ perhaps that commit needs revisiting? HTH |
This has been annoying me for a little while ~ just looking at it closely now, I believe the ticket title is correct (I had to double check that WM settings weren't at play)...and digging into this, I note the issue is not apparent when using floppy images or whdload.lha titles ~ it only manifests itself when a HDD based emulation is running... so I'm thinking bug?
To recreate:
Observation: emulation window 'steals' the mouse back... follow on...
Observation: Now it works as expected, with Desktop receiving focus as the emulation window loses focus.
Expected: MMB to release mouse pointer and emulation window, upon the first use of MMB (no repeated step)
I've attached the config.uae file used, so you can check the emulation setup.
Can this be fixed? It's annoying and really catches one out ;)
TIA
3000.uae.gz
The text was updated successfully, but these errors were encountered: