Rémi Bernon : server: Add an explicit message field in rawinput_message.
Alexandre Julliard
julliard at winehq.org
Tue May 11 16:33:59 CDT 2021
Module: wine
Branch: master
Commit: 2d8f98fd4e9559f73d3282fb094eb116835ce732
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2d8f98fd4e9559f73d3282fb094eb116835ce732
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Tue May 11 10:17:18 2021 +0200
server: Add an explicit message field in rawinput_message.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50506
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/queue.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server/queue.c b/server/queue.c
index 3a37dd96385..a0d46d75cf5 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -1662,6 +1662,7 @@ struct rawinput_message
struct desktop *desktop;
struct hw_msg_source source;
unsigned int time;
+ unsigned int message;
struct hardware_msg_data data;
};
@@ -1697,7 +1698,7 @@ static int queue_rawinput_message( struct process* process, void *arg )
goto done;
msg->win = device->target;
- msg->msg = WM_INPUT;
+ msg->msg = raw_msg->message;
msg->wparam = wparam;
msg->lparam = 0;
memcpy( msg->data, &raw_msg->data, sizeof(raw_msg->data) );
@@ -1773,6 +1774,7 @@ static int queue_mouse_message( struct desktop *desktop, user_handle_t win, cons
raw_msg.desktop = desktop;
raw_msg.source = source;
raw_msg.time = time;
+ raw_msg.message = WM_INPUT;
msg_data = &raw_msg.data;
msg_data->info = input->mouse.info;
@@ -1907,6 +1909,7 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c
raw_msg.desktop = desktop;
raw_msg.source = source;
raw_msg.time = time;
+ raw_msg.message = WM_INPUT;
msg_data = &raw_msg.data;
msg_data->info = input->kbd.info;
More information about the wine-cvs
mailing list