From 8cb4c8fb66096f7aabc8e3920cc531381ed9703a Mon Sep 17 00:00:00 2001 From: Kimimaru Date: Fri, 9 May 2025 13:10:18 +0300 Subject: [PATCH] Implemented Sync for UInputDevice -This allows it to be sent between threads --- src/uinput.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uinput.rs b/src/uinput.rs index e7ec1877..c0cf40ba 100644 --- a/src/uinput.rs +++ b/src/uinput.rs @@ -12,6 +12,7 @@ pub struct UInputDevice { raw: *mut raw::libevdev_uinput, } +unsafe impl Sync for UInputDevice {} unsafe impl Send for UInputDevice {} impl UInputDevice {