[PATCH 2/5] server: Add an explicit message field in rawinput_message.

Rémi Bernon rbernon at codeweavers.com
Tue May 11 03:17:18 CDT 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50506
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 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;
-- 
2.31.0




More information about the wine-devel mailing list