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 panic in call_hyprctl_data_cmd_async and call_hyprctl_data_cmd #205

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

thrombe
Copy link
Contributor

@thrombe thrombe commented Apr 8, 2024

fixes #204.

hyprland-rs sometimes panics when device wakes up from sleep.
the panic is here.

I quickly patched it to use in a tool that i made. And i figured that i might as well make a PR.
let me know if i missed something obviously wrong.

i just made both call_hyprctl_data_cmd and call_hyprctl_data_cmd_async to return a crate::Result. all the places that use these functions are already returning a crate::Result.

@yavko yavko merged commit 9a1a835 into hyprland-community:master Apr 8, 2024
3 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.

broken pipe panic /.../hyprland-0.3.13/src/data/regular.rs:17:19
2 participants