Author: akhaldi
Date: Sat Jun 27 17:15:38 2015
New Revision: 68294
URL:
http://svn.reactos.org/svn/reactos?rev=68294&view=rev
Log:
[KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883
Modified:
trunk/reactos/base/applications/kbswitch/kbswitch.c
Modified: trunk/reactos/base/applications/kbswitch/kbswitch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/kbswitch…
==============================================================================
--- trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] Sat Jun 27 17:15:38
2015
@@ -434,18 +434,17 @@
case WM_NOTIFYICONMSG:
switch (lParam)
{
- case WM_RBUTTONDOWN:
- case WM_LBUTTONDOWN:
+ case WM_RBUTTONUP:
+ case WM_LBUTTONUP:
{
POINT pt;
GetCursorPos(&pt);
SetForegroundWindow(hwnd);
- if (lParam == WM_LBUTTONDOWN)
+ if (lParam == WM_LBUTTONUP)
{
HMENU hLeftPopupMenu;
-
/* Rebuild the left popup menu on every click to take care of
keyboard layout changes */
hLeftPopupMenu = BuildLeftPopupMenu();
TrackPopupMenu(hLeftPopupMenu, 0, pt.x, pt.y, 0, hwnd, NULL);