diff --git a/src/macos/grab.rs b/src/macos/grab.rs index 9c763385..893ecc10 100644 --- a/src/macos/grab.rs +++ b/src/macos/grab.rs @@ -81,6 +81,7 @@ pub fn exit_grab() -> Result<(), GrabError> { CFRunLoopStop(CUR_LOOP); CUR_LOOP = std::ptr::null_mut(); } + GLOBAL_CALLBACK = None; } Ok(()) }