Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CGSSetConnectionProperty(int, int, CFStringRef, CFBooleanRef);
- int _CGSDefaultConnection();
- CFStringRef propertyString;
- // Hack to make background cursor setting work
- propertyString = CFStringCreateWithCString(NULL, "SetsCursorInBackground", kCFStringEncodingUTF8);
- CGSSetConnectionProperty(_CGSDefaultConnection(), _CGSDefaultConnection(), propertyString, kCFBooleanTrue);
- CFRelease(propertyString);
- // Hide the cursor and wait
- CGDisplayHideCursor(kCGDirectMainDisplay);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement