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
