Commit cb635293 by Thomas Fitzsimmons Committed by Thomas Fitzsimmons

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
parent fdc9b3a0
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment