When I am debugging JavaFX project and debugging process stops on a breakpoint i can't use a mouse. I can move the cursor on the screen, but left, right buttons and wheel don't work. More than, the mouse doesn't work system-wild: if I switch an active window the mouse won't work in this window too. Keyboard works well.
I use:
→ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Also, this issue appeared on other DEs (xfce) and different hardware (on my laptop).
A solution is listed here: https://netbeans.org/bugzilla/show_bug.cgi?id=253594
To use this in IntelliJ - Go to Run -> Edit Configurations, and add:
-Dglass.disableGrab=true
to VM Options.
Edit: Heads up - this messes with Drag/Drop events, possibly causing them to not work or work unexpectedly. If you are implementing drag/drop this solution is problematic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With