Alexandre Julliard : server: Try to update the input key state even when the message is

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 14 07:27:46 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 5d282dc89106e2d4190b43a66aa0b8206f91d8ad
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5d282dc89106e2d4190b43a66aa0b8206f91d8ad

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb 14 10:43:15 2006 +0100

server: Try to update the input key state even when the message is
dropped in queue_hardware_message. This should fix some problems with
the Alt key getting "stuck" after Alt-Tab.

---

 server/queue.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/queue.c b/server/queue.c
index 57b94b8..2b3f89c 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -1222,14 +1222,14 @@ static void queue_hardware_message( stru
 {
     user_handle_t win;
     struct thread *thread;
-    struct thread_input *input;
+    struct thread_input *input = queue ? queue->input : foreground_input;
     unsigned int msg_code;
 
     last_input_time = get_tick_count();
-
-    win = find_hardware_message_window( queue ? queue->input : foreground_input, msg, &msg_code );
+    win = find_hardware_message_window( input, msg, &msg_code );
     if (!win || !(thread = get_window_thread(win)))
     {
+        if (input) update_input_key_state( input, msg );
         free( msg );
         return;
     }




More information about the wine-cvs mailing list