Skip to content

[macOS] Incorrect behavior with full screen hotkey #1477

Open
@nadiaholmquist

Description

@nadiaholmquist

Describe the bug
When using the hotkey to enter full screen, ares seems to enter full screen mode incorrectly on macOS. When using the button on the title bar instead, full screen seems to work correctly.

  • The full screen window does not get its own Space/virtual desktop like other applications in full screen do
  • Keyboard input gets registered when the full screen window is not in focus
    • Happens even when the permission to monitor keyboard input is not granted
    • Seems to disregard the option to block input when unfocused
  • The close/minimize/maximize buttons disappear when restoring the window from fullscreen (macOS 10.15+ bug? according to SDL2 source code)

To Reproduce

  1. Bind a hotkey to toggle full screen
  2. Press the hotkey to trigger the incorrect full screen behavior

Expected behavior
ares should enter full screen the same way regardless of whether the button on the title bar or the full screen hotkey is used.

Screenshots
https://github.com/ares-emulator/ares/assets/893884/6a2546ab-76db-4a5d-9408-8352d090e520
Here is a screen recording showing the issue. The first time I full screen, I use the button on the title bar, and the second time I use the hotkey.

Additional context
ares v138, also reproducible in latest commit.
macOS 14.4.1 on Apple Silicon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions