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
3985b7c5
Commit
3985b7c5
authored
Feb 06, 2024
by
Tim Clem
Committed by
Alexandre Julliard
Feb 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Do not attempt to open keyboard and mouse HID devices on macOS.
Doing so triggers a permissions prompt for input monitoring. Patch originally by Rémi Bernon.
parent
5da459f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
bus_iohid.c
dlls/winebus.sys/bus_iohid.c
+10
-0
No files found.
dlls/winebus.sys/bus_iohid.c
View file @
3985b7c5
...
...
@@ -276,6 +276,16 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void *
};
struct
iohid_device
*
impl
;
CFStringRef
str
;
UINT
usage_page
,
usage
;
usage_page
=
CFNumberToDWORD
(
IOHIDDeviceGetProperty
(
IOHIDDevice
,
CFSTR
(
kIOHIDPrimaryUsagePageKey
)));
usage
=
CFNumberToDWORD
(
IOHIDDeviceGetProperty
(
IOHIDDevice
,
CFSTR
(
kIOHIDPrimaryUsageKey
)));
if
(
usage_page
==
HID_USAGE_PAGE_GENERIC
&&
(
usage
==
HID_USAGE_GENERIC_MOUSE
||
usage
==
HID_USAGE_GENERIC_KEYBOARD
))
{
TRACE
(
"Ignoring mouse / keyboard device
\n
"
);
return
;
}
desc
.
vid
=
CFNumberToDWORD
(
IOHIDDeviceGetProperty
(
IOHIDDevice
,
CFSTR
(
kIOHIDVendorIDKey
)));
desc
.
pid
=
CFNumberToDWORD
(
IOHIDDeviceGetProperty
(
IOHIDDevice
,
CFSTR
(
kIOHIDProductIDKey
)));
...
...
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