Skip to content

Commit

Permalink
ignore double click on macos14+
Browse files Browse the repository at this point in the history
  • Loading branch information
amitv87 committed Feb 20, 2024
1 parent 544a014 commit 9ad1e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pip/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<key>Icon file</key>
<string>AppIcon</string>
<key>CFBundleVersion</key>
<string>19</string>
<string>20</string>
<key>CFBundleShortVersionString</key>
<string>2.50</string>
<string>2.60</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
1 change: 1 addition & 0 deletions pip/window.m
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ - (void)capture{

- (void)onDoubleClick:(NSEvent *)theEvent{
if(window_id < 0) return;
if(@available(macOS 14.0, *)) return;
bringWindoToForeground(window_id);
if(@available(macOS 11.0, *)){
if(!AXIsProcessTrusted()) request_permission("Accessibility");
Expand Down

0 comments on commit 9ad1e86

Please sign in to comment.