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

When event loop control flow is Poll, it doesn't receive CloseRequested event #995

Closed
violetastcs opened this issue Jun 28, 2019 · 2 comments
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - x11

Comments

@violetastcs
Copy link

violetastcs commented Jun 28, 2019

Hey, so I tried running the following code https://gist.github.com/ca2df08aa9adfe44dae2dd1568f27ac9. I decided to use ControlFlow::Poll, due to the fact that I would like to re-render on every frame (I know there isn't much right now, but eventually that would be needed I imagine). However, when I do have it as Poll, it doesn't receive WindowEvent::CloseRequested when i attempt to close the window. I do get the event if i set the control flow to Wait, however that doesn't have the desired outcome.

OS: Linux 5.1.10_1
Display Server: xorg
Window Manager: i3wm
(If you need any more info, ask me, I don't know exactly what to put)

Thank you in advance, and sorry if this is intended and I just couldn't find it in the docs.

@goddessfreya goddessfreya transferred this issue from rust-windowing/glutin Jun 28, 2019
@goddessfreya goddessfreya added DS - x11 C - needs investigation Issue must be confirmed and researched B - bug Dang, that shouldn't have happened labels Jun 28, 2019
@goddessfreya
Copy link
Contributor

Can you try this code against winit master? #982 might have fixed this.

@violetastcs
Copy link
Author

Ah yea, it seems to work on winit master. Should have probably tested with that in the first place, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - x11
Development

No branches or pull requests

2 participants