--- 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));