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

fixed issue with move and resize event on X11 #17

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

Code-Nycticebus
Copy link
Contributor

For some reason, the E.xconfigure and win->r are always different, even on resize. This causes the first if statement to always be true, so win->event.type was never set to RGFW_windowResized.

Then I found out that on resize, E.xconfigure.x and E.xconfigure.y are sometimes zero.
So setting win->r to the E.xconfigure dimensions immediately triggers another move event.

@ColleagueRiley
Copy link
Owner

Thanks you 😄

@ColleagueRiley ColleagueRiley merged commit 5215bed into ColleagueRiley:main Jun 25, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants