Revision: 38826
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38826
Author:   alexk
Date:     2011-07-29 20:21:37 +0000 (Fri, 29 Jul 2011)
Log Message:
-----------
Patch [#27925] by Andrew Cox and me

Modifier key sticks after Alt-tab on Win32

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp     2011-07-29 
18:23:16 UTC (rev 38825)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp     2011-07-29 
20:21:37 UTC (rev 38826)
@@ -989,11 +989,16 @@
                                         * procedure of the top-level window 
being activated. If the windows use different input queues,
                                         * the message is sent asynchronously, 
so the window is activated immediately. 
                                         */
+                                       {
+                                       GHOST_ModifierKeys modifiers;
+                                       modifiers.clear();
+                                       system->storeModifierKeys(modifiers);
                                        event = 
processWindowEvent(LOWORD(wParam) ? GHOST_kEventWindowActivate : 
GHOST_kEventWindowDeactivate, window);
                                        /* WARNING: Let DefWindowProc handle 
WM_ACTIVATE, otherwise WM_MOUSEWHEEL
                                        will not be dispatched to OUR active 
window if we minimize one of OUR windows. */
                                        lResult = ::DefWindowProc(hwnd, msg, 
wParam, lParam);
                                        break;
+                                       }
                                case WM_PAINT:
                                        /* An application sends the WM_PAINT 
message when the system or another application 
                                         * makes a request to paint a portion 
of an application's window. The message is sent

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to