re PR awt/19842 (MouseEvent ignores Button2 and Button3)

2005-02-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/19842
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
	(button_to_awt_mods): Return BUTTON masks, not BUTTON_DOWN masks.

From-SVN: r95382
This commit is contained in:
Thomas Fitzsimmons 2005-02-22 04:50:29 +00:00 committed by Thomas Fitzsimmons
parent fdc9b3a02b
commit cb635293c7
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-02-21 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/19842
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(button_to_awt_mods): Return BUTTON masks, not BUTTON_DOWN masks.
2005-02-21 Bryce McKinlay <mckinlay@redhat.com>
Merge serialization from GNU Classpath.

View File

@ -58,11 +58,11 @@ button_to_awt_mods (int button)
switch (button)
{
case 1:
return AWT_BUTTON1_DOWN_MASK;
return AWT_BUTTON1_MASK;
case 2:
return AWT_BUTTON2_DOWN_MASK;
return AWT_BUTTON2_MASK;
case 3:
return AWT_BUTTON3_DOWN_MASK;
return AWT_BUTTON3_MASK;
}
return 0;