mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 82c8cec6e0f28592603b9b66402178422497f9db Mon Sep 17 00:00:00 2001
|
|
From: Derek Lesho <dereklesho52@Gmail.com>
|
|
Date: Tue, 25 Jun 2019 21:58:34 -0400
|
|
Subject: [PATCH 05/10] server: Don't emulate rawinput mouse events if native
|
|
exist.
|
|
|
|
Signed-off-by: Derek Lesho <dereklesho52@Gmail.com>
|
|
---
|
|
server/queue.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/server/queue.c b/server/queue.c
|
|
index edd577bcdc7..7ddee7c91ed 100644
|
|
--- a/server/queue.c
|
|
+++ b/server/queue.c
|
|
@@ -1737,6 +1737,8 @@ static int send_hook_ll_message( struct desktop *desktop, struct message *hardwa
|
|
return 1;
|
|
}
|
|
|
|
+static int emulate_raw_mouse = 1;
|
|
+
|
|
/* queue a hardware message for a mouse event */
|
|
static int queue_mouse_message( struct desktop *desktop, user_handle_t win, const hw_input_t *input,
|
|
unsigned int origin, struct msg_queue *sender )
|
|
@@ -1802,7 +1804,8 @@ static int queue_mouse_message( struct desktop *desktop, user_handle_t win, cons
|
|
y = desktop->cursor.y;
|
|
}
|
|
|
|
- if ((device = current->process->rawinput_mouse))
|
|
+ device = current->process->rawinput_mouse;
|
|
+ if (device && emulate_raw_mouse)
|
|
{
|
|
if (!(msg = alloc_hardware_message( input->mouse.info, source, time ))) return 0;
|
|
msg_data = msg->data;
|
|
@@ -2578,6 +2581,7 @@ DECL_HANDLER(send_rawinput_message)
|
|
switch (req->input.type)
|
|
{
|
|
case RIM_TYPEMOUSE:
|
|
+ emulate_raw_mouse = 0;
|
|
if ((device = current->process->rawinput_mouse))
|
|
{
|
|
struct thread *thread = device->target ? get_window_thread( device->target ) : NULL;
|
|
--
|
|
2.17.1
|
|
|