public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3
@ 2005-02-09  9:44 hendrich at informatik dot uni-hamburg dot de
  2005-02-09  9:49 ` [Bug AWT/19842] " hendrich at informatik dot uni-hamburg dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: hendrich at informatik dot uni-hamburg dot de @ 2005-02-09  9:44 UTC (permalink / raw)
  To: java-prs

The attached testcase demonstrates the java.awt.event.MouseEvent
internally knows about the middle and right mouse buttons (because
the correct data shows up in event.toString()).

However, querying those values via getButton() or getModifiers()
or InputEvent.isAltDown() / isMetaDown() always returns false.
This makes it impossible to detect middle/right button clicks in
user programs.

Testcase usage: compile and run, then try mouse-clicks on the frame
using all mouse buttons and the (shift/alt/meta/control)-key+button1
variants. Might use java.awt.Robot to automate...

-- 
           Summary: MouseEvent ignores Button2 and Button3
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: AWT
        AssignedTo: fitzsim at redhat dot com
        ReportedBy: hendrich at informatik dot uni-hamburg dot de
                CC: fitzsim at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org,java-prs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug AWT/19842] MouseEvent ignores Button2 and Button3
  2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
@ 2005-02-09  9:49 ` hendrich at informatik dot uni-hamburg dot de
  2005-02-12 22:33 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: hendrich at informatik dot uni-hamburg dot de @ 2005-02-09  9:49 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From hendrich at informatik dot uni-hamburg dot de  2005-02-09 09:39 -------
Created an attachment (id=8152)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8152&action=view)
testcase 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug AWT/19842] MouseEvent ignores Button2 and Button3
  2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
  2005-02-09  9:49 ` [Bug AWT/19842] " hendrich at informatik dot uni-hamburg dot de
@ 2005-02-12 22:33 ` pinskia at gcc dot gnu dot org
  2005-02-22  6:13 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 22:33 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-12 22:32 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-12 22:32:16
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug AWT/19842] MouseEvent ignores Button2 and Button3
  2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
  2005-02-09  9:49 ` [Bug AWT/19842] " hendrich at informatik dot uni-hamburg dot de
  2005-02-12 22:33 ` pinskia at gcc dot gnu dot org
@ 2005-02-22  6:13 ` cvs-commit at gcc dot gnu dot org
  2005-02-22  6:22 ` fitzsim at redhat dot com
  2005-02-22  6:26 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-22  6:13 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-22 04:50 -------
Subject: Bug 19842

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	fitzsim@gcc.gnu.org	2005-02-22 04:50:29

Modified files:
	libjava        : ChangeLog 
	libjava/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkEvents.c 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3372&r2=1.3373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c.diff?cvsroot=gcc&r1=1.26&r2=1.27



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug AWT/19842] MouseEvent ignores Button2 and Button3
  2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
                   ` (2 preceding siblings ...)
  2005-02-22  6:13 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-22  6:22 ` fitzsim at redhat dot com
  2005-02-22  6:26 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: fitzsim at redhat dot com @ 2005-02-22  6:22 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-02-22 04:54 -------
Fixed on mainline.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug AWT/19842] MouseEvent ignores Button2 and Button3
  2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
                   ` (3 preceding siblings ...)
  2005-02-22  6:22 ` fitzsim at redhat dot com
@ 2005-02-22  6:26 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22  6:26 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug awt/19842] MouseEvent ignores Button2 and Button3
       [not found] <bug-19842-9150@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16  1:57 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16  1:57 UTC (permalink / raw)
  To: java-prs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |pre-0.18


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-16  1:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09  9:44 [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 hendrich at informatik dot uni-hamburg dot de
2005-02-09  9:49 ` [Bug AWT/19842] " hendrich at informatik dot uni-hamburg dot de
2005-02-12 22:33 ` pinskia at gcc dot gnu dot org
2005-02-22  6:13 ` cvs-commit at gcc dot gnu dot org
2005-02-22  6:22 ` fitzsim at redhat dot com
2005-02-22  6:26 ` pinskia at gcc dot gnu dot org
     [not found] <bug-19842-9150@http.gcc.gnu.org/bugzilla/>
2005-10-16  1:57 ` [Bug awt/19842] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).