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

Don't make X11 requests to a destroyed window. #1103

Merged
merged 2 commits into from
Jul 26, 2020
Merged

Don't make X11 requests to a destroyed window. #1103

merged 2 commits into from
Jul 26, 2020

Conversation

jneem
Copy link
Collaborator

@jneem jneem commented Jul 25, 2020

Fixes #1101.

@richard-uk1
Copy link
Collaborator

Would it be worth logging when a X11 call is made after the window is destroyed? I don't know enough about this bit of the druid code, but could it indicate a logic error?

@jneem
Copy link
Collaborator Author

jneem commented Jul 25, 2020

I think logging would mostly result in false positives. The fundamental issue is that window stuff comes from two directions: X11, and the druid-shell's user (e.g. druid). There's no synchronization between the two, and X11 is pretty asynchronous to begin with, so I don't think it will be unusual that we try to do something to a deleted window.

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@cmyr cmyr added the S-waiting-on-author waits for changes from the submitter label Jul 26, 2020
@jneem jneem merged commit 86dc2f2 into linebender:master Jul 26, 2020
@jneem jneem deleted the 1101 branch July 26, 2020 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author waits for changes from the submitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Window is destroyed multiple times
3 participants