Skip to content

MacOS full screen mode is buggy #2008

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

Open
Spidy123222 opened this issue Mar 14, 2025 · 6 comments
Open

MacOS full screen mode is buggy #2008

Spidy123222 opened this issue Mar 14, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@Spidy123222
Copy link

Spidy123222 commented Mar 14, 2025

Bug Description

When enabling full screen or doing it via macOS via green button. it full screen fine, however clicking any sort of ui is badly offset and unusable unless using the controller ui with keyboard.

Expected Behavior

not have dysfunctional mouse controls for the ui

xemu Version

Version: 0.8.34
Branch: master
Commit: a143f66
Date: Mon Mar 10 23:16:56 UTC 2025

System Information

CPU:
OS Platform: macOS
OS Version: Version 15.3.1 (Build 24D70)
Manufacturer: Apple
GPU Model: Apple M2 Pro
Driver: 4.1 Metal - 89.3
Shader: 4.10

Additional Context

Screen.Recording.2025-03-14.at.12.09.17.AM-1.mov
@Spidy123222 Spidy123222 added the bug Something isn't working label Mar 14, 2025
@MasonT8198
Copy link
Contributor

MasonT8198 commented Mar 14, 2025

This is an issue with notched macbooks

See libsdl-org/SDL#10441

@MasonT8198
Copy link
Contributor

Feel free to edit the UI structure to use SDL_GetMouseState() on MacOS (arguably all platforms, however start with MacOS) to circumvent this issue

@MasonT8198
Copy link
Contributor

Also a more accurate issue title would be "Mac fullscreen mouse coordinates are offset on Notched Models"

@mborgerson
Copy link
Member

You can send a patch to xemu/imgui xemu branch. Something like ocornut/imgui#7919

@MasonT8198
Copy link
Contributor

This is fixed when xemu-project/imgui#2 is merged, and I update the subproject wrap file in xemu

@MasonT8198
Copy link
Contributor

I tested the patch on my M3 mac with a notch and this works flawlessly

https://github.com/MasonT8198/xemu/actions/runs/13852870750/artifacts/2751335104

^ here's the attached artifact if you want to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants