Commit 2d8f98fd authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

server: Add an explicit message field in rawinput_message.

parent 427168ba
...@@ -1662,6 +1662,7 @@ struct rawinput_message ...@@ -1662,6 +1662,7 @@ struct rawinput_message
struct desktop *desktop; struct desktop *desktop;
struct hw_msg_source source; struct hw_msg_source source;
unsigned int time; unsigned int time;
unsigned int message;
struct hardware_msg_data data; struct hardware_msg_data data;
}; };
...@@ -1697,7 +1698,7 @@ static int queue_rawinput_message( struct process* process, void *arg ) ...@@ -1697,7 +1698,7 @@ static int queue_rawinput_message( struct process* process, void *arg )
goto done; goto done;
msg->win = device->target; msg->win = device->target;
msg->msg = WM_INPUT; msg->msg = raw_msg->message;
msg->wparam = wparam; msg->wparam = wparam;
msg->lparam = 0; msg->lparam = 0;
memcpy( msg->data, &raw_msg->data, sizeof(raw_msg->data) ); 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 ...@@ -1773,6 +1774,7 @@ static int queue_mouse_message( struct desktop *desktop, user_handle_t win, cons
raw_msg.desktop = desktop; raw_msg.desktop = desktop;
raw_msg.source = source; raw_msg.source = source;
raw_msg.time = time; raw_msg.time = time;
raw_msg.message = WM_INPUT;
msg_data = &raw_msg.data; msg_data = &raw_msg.data;
msg_data->info = input->mouse.info; msg_data->info = input->mouse.info;
...@@ -1907,6 +1909,7 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c ...@@ -1907,6 +1909,7 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c
raw_msg.desktop = desktop; raw_msg.desktop = desktop;
raw_msg.source = source; raw_msg.source = source;
raw_msg.time = time; raw_msg.time = time;
raw_msg.message = WM_INPUT;
msg_data = &raw_msg.data; msg_data = &raw_msg.data;
msg_data->info = input->kbd.info; msg_data->info = input->kbd.info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment