-
Notifications
You must be signed in to change notification settings - Fork 238
Add CGEventTap #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CGEventTap #436
Conversation
|
Does anyone have any idea how to test this? Since you need to allow accessibility in order to use this feature. |
a7f0e9e to
e1a1281
Compare
|
Can anyone CR it? |
| Some(new_event) => new_event, | ||
| None => event, | ||
| }; | ||
| ManuallyDrop::new(event).as_ptr() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments, why do I do that?
| ManuallyDrop::new(event).as_ptr() | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Derive Debug
| unsafe { | ||
| let runloop_source_ref = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, self.0, order); | ||
| if runloop_source_ref.is_null() { | ||
| Err(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swipe Err and Ok
|
Somebody there? |
|
@bors-servo r+ |
|
📌 Commit 532a321 has been approved by |
|
☀️ Test successful - checks-travis |
servo/core-graphics-rs#111