changeset 871:7e0533679ea1

6746212: Broken MouseEvents for TrayIcon Reviewed-by: dcherepanov, art
author dav
date Mon, 29 Sep 2008 14:54:55 +0400
parents 3b9a288d7ddb
children 672290c883fd
files src/windows/native/sun/windows/awt_TrayIcon.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_TrayIcon.cpp	Tue Sep 16 12:17:02 2008 +0400
+++ b/src/windows/native/sun/windows/awt_TrayIcon.cpp	Mon Sep 29 14:54:55 2008 +0400
@@ -367,7 +367,7 @@
                    (AwtComponent::GetButton(button) == java_awt_event_MouseEvent_BUTTON3 ?
                     TRUE : FALSE), AwtComponent::GetButton(button), &msg);
 
-    if ((m_mouseButtonClickAllowed & AwtComponent::GetButtonMK(button)) != 1) { // No up-button in the drag-state
+    if ((m_mouseButtonClickAllowed & AwtComponent::GetButtonMK(button)) != 0) { // No up-button in the drag-state
         SendMouseEvent(java_awt_event_MouseEvent_MOUSE_CLICKED,
                        TimeHelper::windowsToUTC(::GetTickCount()), x, y, AwtComponent::GetJavaModifiers(),
                        clickCount, JNI_FALSE, AwtComponent::GetButton(button));