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 panic when wayland display connection breaks #54

Merged
merged 3 commits into from
Feb 19, 2024
Merged

Fix panic when wayland display connection breaks #54

merged 3 commits into from
Feb 19, 2024

Conversation

tronical
Copy link
Contributor

@tronical tronical commented Feb 19, 2024

Instead, terminate the thread and consider the clipboard dead. The application can now gracefully deal with the situation.

Closes #52

src/worker.rs Outdated
Comment on lines 98 to 99
if event_loop.dispatch(None, &mut state).is_err() {
// Possibly broken connection to the display server, not much we can
// do at this point.
break;
}

if state.exit {
break;
Copy link
Member

Choose a reason for hiding this comment

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

Should just merge both if.

Instead, terminate the thread and consider the clipboard dead. The
application can now gracefully deal with the situation.

Closes #52
@kchibisov
Copy link
Member

Could you fixup CI while at it, I don't want to push to your master branch myself.

@tronical
Copy link
Contributor Author

Sure :)

Remove redundant imports
Implement std::fmt::Display instead of ToString
@kchibisov kchibisov merged commit ee63d81 into Smithay:master Feb 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when running in WSL2
2 participants