-
Notifications
You must be signed in to change notification settings - Fork 937
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
x11 running two window creation/deletion panics #421
Labels
Comments
#416 doesn't solve the issue panic happens at https://github.com/francesca64/winit/blob/x11-drop-window/src/platform/linux/x11/mod.rs#L375 (i agree for one eventsloop) |
I've updated the code such that all cases should be covered now. Does everything work fine now? |
yes thanks ! |
Fixed via #416 |
tmfink
pushed a commit
to tmfink/winit
that referenced
this issue
Jan 5, 2022
… r=pcwalton Allow clip paths to nest in the canvas API. Closes rust-windowing#372.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it panics on unwrap None at https://github.com/tomaka/winit/blob/master/src/platform/linux/x11/mod.rs#L360
and then if I fix that it panics on https://github.com/tomaka/winit/blob/master/src/platform/linux/x11/mod.rs#L719
It seems that FocusOut and ConfigureNotify events are sent after window deletion.
A solution would be to return when
windows.get_mut(..)
returns None on those events. Or maybe on all events.The text was updated successfully, but these errors were encountered: