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

Fix freeze when requesting clipboard image from our own window #83970

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

Setadokalo
Copy link
Contributor

Fixes #83949.
When requesting clipboard contents from the current window, the SelectionNotify event is never received, which causes a freeze. I'm not sure if that's expected X11 behavior or a bug in the selection logic. Either way, the text clipboard avoids this problem by handling the request without involving the X11 clipboard system, so here I've done something similar. Since we don't support putting images on the clipboard (yet 🤞), I just early-exit in the selection logic.

Copy link
Contributor

@Riteo Riteo left a comment

Choose a reason for hiding this comment

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

Makes perfect sense!

@akien-mga akien-mga merged commit 2564026 into godotengine:master Oct 26, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Setadokalo Setadokalo deleted the clipboard_freeze branch October 26, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freeze when using DisplayServer.clipboard_get_image with invalid data on Linux
4 participants