static mach_port_t (*GSTakePurpleSystemEventPort)(void);
static bool PurpleAllocated;
+static bool Two_;
+
+static void FixRecord(GSEventRecord *record) {
+ if (Two_)
+ memmove(&record->windowContextId, &record->windowContextId + 1, sizeof(*record) - (reinterpret_cast<uint8_t *>(&record->windowContextId + 1) - reinterpret_cast<uint8_t *>(record)) + record->size);
+}
static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
x_ = x; y_ = y;
record.timestamp = GSCurrentEventTimestamp();
+ FixRecord(&record);
GSSendSystemEvent(&record);
}
record.timestamp = GSCurrentEventTimestamp();
+ FixRecord(&record);
GSSendSystemEvent(&record);
}
record.timestamp = GSCurrentEventTimestamp();
+ FixRecord(&record);
GSSendSystemEvent(&record);
}
port = purple;
}
+ FixRecord(&event.record);
GSSendEvent(&event.record, port);
}
PurpleAllocated = true;
}
+ Two_ = dlsym(RTLD_DEFAULT, "GSEventGetWindowContextId") == NULL;
+
MSHookFunction(&IOMobileFramebufferSwapSetLayer, &$IOMobileFramebufferSwapSetLayer, &_IOMobileFramebufferSwapSetLayer);
$SBAlertItemsController = objc_getClass("SBAlertItemsController");
Section: Networking
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.2970-1
+Version: 0.9.2971-1
Description: a VNC /server/ for the iPhone
Name: Veency
Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver