Skip to content

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

Merged
jneem merged 2 commits intolinebender:masterfrom
jneem:1101
Jul 26, 2020
Merged

Don't make X11 requests to a destroyed window.#1103
jneem merged 2 commits intolinebender:masterfrom
jneem:1101

Conversation

@jneem
Copy link
Member

@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
Member 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