]> git.saurik.com Git - veency.git/commitdiff
Move IOHIDEventSetSenderID call to VNCSetSender.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Jan 2014 16:55:00 +0000 (08:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Jan 2014 16:55:00 +0000 (08:55 -0800)
Tweak.mm

index 041e4bcc991c36c839d937b68d213f6ae1462eb1..78de17d1b633acf9a81ff52eb7e61135dc0c06fa 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -586,12 +586,16 @@ static void VNCPointerOld(int buttons, int x, int y, CGPoint location, int diff,
         mach_port_deallocate(mach_task_self(), purple);
 }
 
+static void VNCSetSender(IOHIDEventRef event) {
+    IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5);
+}
+
 static void VNCSendHIDEvent(IOHIDEventRef event) {
     static IOHIDEventSystemClientRef client_(NULL);
     if (client_ == NULL)
         client_ = IOHIDEventSystemClientCreate(kCFAllocatorDefault);
-    IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5);
 
+    VNCSetSender(event);
     IOHIDEventSystemClientDispatchEvent(client_, event);
     CFRelease(event);
 }