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.
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
andcall_hyprctl_data_cmd_async
to return acrate::Result
. all the places that use these functions are already returning acrate::Result
.