Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
86368334
Commit
86368334
authored
Oct 06, 2020
by
Brendan Shanks
Committed by
Alexandre Julliard
Oct 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Remove unused GetCurrentProcess() call.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
627d31fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+0
-24
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
86368334
...
...
@@ -19,7 +19,6 @@
*/
#import <Carbon/Carbon.h>
#include <dlfcn.h>
#import "cocoa_app.h"
#import "cocoa_event.h"
...
...
@@ -1332,8 +1331,6 @@ static NSString* WineLocalizedString(unsigned int stringID)
-
(
BOOL
)
installEventTap
{
ProcessSerialNumber
psn
;
OSErr
err
;
CGEventMask
mask
=
CGEventMaskBit
(
kCGEventLeftMouseDown
)
|
CGEventMaskBit
(
kCGEventLeftMouseUp
)
|
CGEventMaskBit
(
kCGEventRightMouseDown
)
|
...
...
@@ -1346,31 +1343,10 @@ static NSString* WineLocalizedString(unsigned int stringID)
CGEventMaskBit
(
kCGEventOtherMouseDragged
)
|
CGEventMaskBit
(
kCGEventScrollWheel
);
CFRunLoopSourceRef
source
;
void
*
appServices
;
OSErr
(
*
pGetCurrentProcess
)(
ProcessSerialNumber
*
PSN
);
if
(
cursorClippingEventTap
)
return
TRUE
;
// We need to get the Mac GetCurrentProcess() from the ApplicationServices
// framework with dlsym() because the Win32 function of the same name
// obscures it.
appServices
=
dlopen
(
"/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices"
,
RTLD_LAZY
);
if
(
!
appServices
)
return
FALSE
;
pGetCurrentProcess
=
dlsym
(
appServices
,
"GetCurrentProcess"
);
if
(
!
pGetCurrentProcess
)
{
dlclose
(
appServices
);
return
FALSE
;
}
err
=
pGetCurrentProcess
(
&
psn
);
dlclose
(
appServices
);
if
(
err
!=
noErr
)
return
FALSE
;
// We create an annotated session event tap rather than a process-specific
// event tap because we need to programmatically move the cursor even when
// mouse moves are directed to other processes. We disable our tap when
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment