Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
Fixing one of my bugs
  • Loading branch information
turannul committed Jul 5, 2023
1 parent 46b58d7 commit ea831e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
appname := PristineTouch
execname := pristinetouch
identifier := xyz.turannul.PristineTouch
version := 1.1.1
version := 1.1.2
execpath := build/PristineTouch.app/Contents/MacOS
plistpath := build/PristineTouch.app/Contents/

Expand Down
13 changes: 2 additions & 11 deletions src/PristineTouch.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ - (instancetype)init {
defer:NO];

[self.window setTitle:@"PristineTouch"];
[self.window setLevel:NSFloatingWindowLevel];
[self.window setLevel:kCGMaximumWindowLevel];

[self.window setCollectionBehavior:(NSWindowCollectionBehaviorStationary |
NSWindowCollectionBehaviorIgnoresCycle |
NSWindowCollectionBehaviorFullScreenAuxiliary)];
Expand Down Expand Up @@ -57,16 +58,6 @@ - (instancetype)init {
return self;
}


- (void)windowDidBecomeKey:(NSNotification *)notification {
[[NSApplication sharedApplication] setPresentationOptions:NSApplicationPresentationAutoHideMenuBar];
NSLog(@"[+] (Window) Im here ");
}
- (void)applicationDidBecomeActive:(NSNotification *)notification {
[[NSApplication sharedApplication] setPresentationOptions:NSApplicationPresentationAutoHideMenuBar];
NSLog(@"[+] (Application) Im here ");
}

- (void)applicationDidFinishLaunching:(NSNotification *)notification {
if (![self hasAccessibilityAccess]) {
[self displayAccessibilityAlert];
Expand Down
9 changes: 4 additions & 5 deletions to-do list.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

Hide Menu bar???
Disable Trackpad (and Touchbar) Gestures while app running?
Design/Find a icon
Improve code readability :: refactor later?




2,3,4 I might need help.
3-
1,2 I might need help.
1-
NSGestureRecognizer *trackpadGestureRecognizer = [NSPanGestureRecognizer alloc];
trackpadGestureRecognizer.allowedTouchTypes = @[@(NSTouchTypeDirect)];
[trackpadGestureRecognizer setEnabled:NO];
Expand All @@ -16,6 +15,6 @@ Improve code readability :: refactor later?
for (NSTouchBarItem *item in [[NSTouchBar builtInTouchBar] itemIdentifiers]) {
if ([item isKindOfClass:[NSCustomTouchBarItem class]]) {
NSCustomTouchBarItem *customItem = (NSCustomTouchBarItem *)item;
[customItem.view setGestureRecognizers:@[]];
[customItem.view setGestureRecognizers:@[]]; //:nil?
}
}

0 comments on commit ea831e3

Please sign in to comment.