-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Don't restart the app #46
Conversation
|
||
// Enable the event tap. | ||
CGEventTapEnable(eventTap, true); | ||
[self registerMouseCallback:pool]; |
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.
We do
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
and
registerTouchCallback();
above, so could we just call startUnstableListeners
instead?
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.
Seems possible, but I don't want to mess with the autorelease pool. Since I'm not sure how to measure its effect, I won't be aware if it doesn't work correctly.
P.S. Probably broke it already tbh, never seen a pool passed as a method parameter.
MiddleClick/Controller.m
Outdated
@@ -291,18 +348,11 @@ int touchCallback(int device, Finger* data, int nFingers, double timestamp, | |||
} | |||
|
|||
/// Relaunch the app when devices are connected/invalidated. | |||
static void restartApp() | |||
- (void)restartApp |
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.
Could we rename it because we don't restart the app anymore?
#45