<AWT Dev> Bug 853079: focus problems with openjdk 1.7.0 under gnome3 when selcted keyboard is not the first in keyboard list

Mario Torre neugens at redhat.com
Thu Nov 8 09:00:50 PST 2012


Hi all!

I would like to propose a fix for this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=853079

The root cause of the bug is an event being generated that sets the
grabWindowRef on the window confusing the internal events state.

Usually, when a mouse press is detected the grabWindowRef is set.

However, in some cases (like the reproducer for bug in the report, but
there are likely other conditions that have similar behaviour), the
mouse events carry some flags that the actual code mistakenly interpret
causing the grabWindowRef to not be unset.

The proposed patch address the code for the button event mapping:

http://cr.openjdk.java.net/~neugens/853079/webrev.01/

We have no easy way to automatically provide a test case for this bug
unfortunately.

I could reproduce the bug with OpenJDK 6, 7 and 8 as well as Oracle JDK,
so it's a long lasting bug. I'm not sure if it's worth to eventually
backport to 7 as well if approved.

Cheers,
Mario





More information about the awt-dev mailing list