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

Mac OS X: location of mouse pointer triggers hot corners #472

Closed
pmonks opened this Issue Aug 22, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@pmonks

pmonks commented Aug 22, 2018

Steps to reproduce:

  1. Open System Preferences > Desktop & Screen Saver > Screen Saver > Hot Corners...
  2. Configure the lower right to Start Screen Saver
  3. Start Attract
  4. Start a game

Expected result:

  • Game starts

Actual result:

  • Screen saver starts
@pmonks

This comment has been minimized.

pmonks commented Aug 22, 2018

I suspect this is happening because attract programmatically locates the mouse pointer to the lower right corner of the screen prior to starting the emulator (MAME, in my case), which then triggers the screen saver.

What's worse is that if password-on-awake is enabled (System Preferences > Security & Privacy > Require password immediately after sleep or screen saver begins), it becomes impossible to enter the password into the password prompt after interrupting the screen saver - keypresses don't do anything. My assumption is that Attract and/or MAME are grabbing the keyboard in some low-level way that prevents keystrokes from going to the password entry field, making it impossible to log back in (an undesirable hard reset being the only way out of this situation).

@estefan3112

This comment has been minimized.

estefan3112 commented Sep 1, 2018

I confirm this behavior - and many thanks for this hint, this is actually why Attract Mode was not launching MAME. As a workaround I disabled the Hot Corner and Attract Mode/MAME works now :-).

mickelson added a commit that referenced this issue Sep 1, 2018

Issue #472 - Added setting to control pointer moving on emu launch
- The frontend tries to obscure the mouse pointer when launching an
  emulator by moving it to the bottom right corner on launch
- This can trigger 'hot corners' on Mac OS X and other OSs
- Added the "move_mouse_on_launch" setting to attract.cfg, controlling
  whether the FE tries to move the mouse in this manner (defaults to
  'no' on OS X, 'yes' otherwise)
@mickelson

This comment has been minimized.

Owner

mickelson commented Sep 1, 2018

This has been an issue in the past as well: 302110a#diff-fe220e33dd437766526be4116ebd76b1

I've added a "move_mouse_on_launch" setting to attract.cfg allowing you to control this in the future.

@mickelson mickelson closed this Sep 1, 2018

@estefan3112

This comment has been minimized.

estefan3112 commented Sep 2, 2018

Confirmed! Option is available and mouse no longer moves into the Hot Corner. This is when you continue with your attract.cfg over the time...many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment