-
Notifications
You must be signed in to change notification settings - Fork 72
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
Bad mapping for event 17 : "DestroyNotify" #162
Comments
According to the spec:
My understanding of this is:
IIUC what you're doing, when you call |
Ok then... There is still a bug somewhere in the windowmanager example and the core in general. The DestroyNotify event is not passed to the event_consumer. Without the trick IMO, this should be changed to allow the event_consumer to destroy the window. EDIT : To give you the full context, I'm launching an app through terminal and then kill it with Ctrl-C and try to get the window closed. |
hi @izanagi1995 I'm in 'holiday mode' currently and read notifications diagonally. Can you post code snippet with "what's expected" vs "what's happening"? If you strongly believe your expectations are correct, maybe even create PR which adds your assertion as test case ( obviously currently failing) |
I'm creating a Window Manager with your awesome module.
I had a bug with the "DestroyNotify" event. The event_consumer of the window was never triggered. It's because the real wid is in the field event. I don't know why but the wid in this case is the same as the "MapNotify" event but when I try X.DestroyWindow(ev.wid), it's yield a "BadWindow" error. But when I do X.DestroyWIndow(ev.event), the window is destroyed successfully.
The text was updated successfully, but these errors were encountered: