-
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
Mouse coordinates are off in fullscreen, MacOS #319
Labels
Comments
Thanks for the report. My guess is that minifb needs to detect when the application enters fullscreen as I think it currently always includes the size of the titlebar currently. |
This seems correct as I get the same behaviour with : WindowOptions {
title: false,
..WindowOptions::default()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems the mouse coordinates are off when you go into fullscreen mode on macOS (Ventura 13.1). It gets it right for any resized window and for any scale_mode, except when I go fullscreen the mouse is not where it thinks. This doesn't seem to affect Windows users.
Fullscreen:
![fullscreen](https://private-user-images.githubusercontent.com/77705767/240146631-83be5afb-3518-4c96-9af8-6948945e5c76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzI5MDksIm5iZiI6MTcyMDczMjYwOSwicGF0aCI6Ii83NzcwNTc2Ny8yNDAxNDY2MzEtODNiZTVhZmItMzUxOC00Yzk2LTlhZjgtNjk0ODk0NWU1Yzc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIxMTY0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyZDIzZWNlNmZmMDFmNTAwYWYwZDhjYzYwOTgwNDJiNTJiODA5OTg1YjVkODVhMTk2Njk0NGIwNTYwYzgwNjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9dMTLDExY-Sf0C7tNDZtZsByRdzX0ZbrJloTJuVSJWY)
Non fullscreen (regardless of scale mode, aspect ratio or size)
![small2](https://private-user-images.githubusercontent.com/77705767/240146674-315b0b97-2f64-4cf9-990c-71df14dd9853.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzI5MDksIm5iZiI6MTcyMDczMjYwOSwicGF0aCI6Ii83NzcwNTc2Ny8yNDAxNDY2NzQtMzE1YjBiOTctMmY2NC00Y2Y5LTk5MGMtNzFkZjE0ZGQ5ODUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIxMTY0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NWU0OTAyNzkyYzAzMzZlNDY1YTdiNzlkZWU2YzdlNjc0YjU5OTM2ZWMyNzNmNjFjYzdmM2NiY2Q2NzA3ZjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jNLbqWPKARz8Gj5-sbaKY5gmc7Zls1NsmN4nBLnOfLU)
![small](https://private-user-images.githubusercontent.com/77705767/240146687-74282b43-780e-40c0-b2c3-4f2080a40a2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzI5MDksIm5iZiI6MTcyMDczMjYwOSwicGF0aCI6Ii83NzcwNTc2Ny8yNDAxNDY2ODctNzQyODJiNDMtNzgwZS00MGMwLWIyYzMtNGYyMDgwYTQwYTJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIxMTY0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3YWU0MjIyMjI2MTI4YzEzZTkwZTJkYTg0NWQ5YzZiNTNmMDE3N2IxMjMyOTczYTEzM2YzZWIxYzZjMzI3NmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.82Bs8cNWHX6I2EGfIcyXol4tF-oseFIso-Doh5kal94)
code:
On a possibly unrelated note, should this work after resizing?
Thanks for your time
The text was updated successfully, but these errors were encountered: