Skip to content
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

sometimes (set-config-flags :window-highdpi) messes up mouse position #44

Open
saikyun opened this issue Oct 17, 2021 · 0 comments
Open

Comments

@saikyun
Copy link
Owner

saikyun commented Oct 17, 2021

A user had problems with mouse clicks being perceived by freja as being in a different position than the mouse were. The user found that commenting out (set-config-flags :window-highdpi). It's not clear why this happens in some situations but not in others.

The user was using i3wm.

One possible solution is figuring out the screen's pixel ratio and not setting the flag if the pixel-ratio is 1. You can't figure out the pixel ratio in raylib before creating a window though (and then it's too late to set the flag), but perhaps there are other ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant