changeset 1963:16c7a0981e65

6746212: Broken MouseEvents for TrayIcon Reviewed-by: dcherepanov, art
author dav
date Mon, 29 Sep 2008 14:54:55 +0400
parents 6c293d33645b
children 934568dfe859
files jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/windows/awt_TrayIcon.cpp	Tue Sep 16 12:17:02 2008 +0400
+++ b/jdk/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));