diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2005-02-22 04:50:29 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2005-02-22 04:50:29 +0000 |
commit | cb635293c7defc3babab65388569f909452808da (patch) | |
tree | ec8b0a4782574414de06fba282d2284a4910167f /libjava/jni | |
parent | fdc9b3a02b241938b688e84c0f6d5001fb5c73ef (diff) | |
download | gcc-cb635293c7defc3babab65388569f909452808da.zip gcc-cb635293c7defc3babab65388569f909452808da.tar.gz gcc-cb635293c7defc3babab65388569f909452808da.tar.bz2 |
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
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c index 7ad20b8..8d3dda9 100644 --- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c +++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c @@ -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; |