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

Combining ALLEGRO_GTK_TOPLEVEL and ALLEGRO_RESIZABLE causes mouse event Y position to be offset #1609

Open
chruffins opened this issue Jan 5, 2025 · 3 comments

Comments

@chruffins
Copy link

I'm working on a project where the display uses the menu functionality and is intended to be resizable as well, but combining these flags in al_set_new_display_flags causes mouse events to report the wrong position. ALLEGRO_GTK_TOPLEVEL by itself as well as ALLEGRO_RESIZABLE by itself work normally. In all of these cases, I'm also using ALLEGRO_WINDOWED and ALLEGRO_PROGRAMMABLE_PIPELINE.

image

The circle directly above my cursor shows the reported xy-coordinate that I get from mouse events.

@SiegeLord
Copy link
Member

I can't seem to reproduce this on the master build. What version are you using? Also, what desktop environment is it (GNOME? KDE? Cinnamon?)

@chruffins
Copy link
Author

I'm using 5.2.8, and this is on GNOME

@SiegeLord
Copy link
Member

I tried this with that configuration, and am still having trouble reproducing this. Is it at all possible to get access to your code?

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

2 participants