Skip to content

Commit

Permalink
Release event tap and run loop source after adding source
Browse files Browse the repository at this point in the history
  • Loading branch information
emreyolcu committed Jun 5, 2024
1 parent b1d1e44 commit 6c85d7c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DiscreteScroll.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,14 @@
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
INFOPLIST_FILE = DiscreteScroll/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.1;
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DiscreteScroll;
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -267,14 +267,14 @@
buildSettings = {
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
INFOPLIST_FILE = DiscreteScroll/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.1;
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DiscreteScroll;
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down
2 changes: 2 additions & 0 deletions DiscreteScroll/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ int main(void)
if (!source)
displayNoticeAndExit(CFSTR("DiscreteScroll could not create a run loop source."));
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
CFRelease(tap);
CFRelease(source);
CFRunLoopRun();

return EXIT_SUCCESS;
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ As of May 2024, this application works on macOS versions 10.9–14.0.

### Installation

You may download the binary [here](https://github.com/emreyolcu/discrete-scroll/releases/download/v1.1.0/DiscreteScroll.zip).
You may download the binary [here](https://github.com/emreyolcu/discrete-scroll/releases/download/v1.2.1/DiscreteScroll.zip).
DiscreteScroll requires access to accessibility features.
Upon startup, if it does not have access, it will prompt you and wait.
You do not need to restart the application
Expand Down Expand Up @@ -88,6 +88,10 @@ even though you have previously granted it access, try the following:

### History

#### v1.2.1 (2024-06-05)

- **Fix:** Release event tap and run loop source after adding source.

#### v1.2.0 (2024-06-02)

- Remove accessibility observer once granted access.
Expand Down

0 comments on commit 6c85d7c

Please sign in to comment.