JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.35k stars 198 forks source link

JBR-7481: Work around for mouse entered/exited events #434

Closed stachenov closed 2 months ago

stachenov commented 3 months ago

Implement a workaround for the bug when mouse entered/exited events are not generated by AppKit for whatever reason. Needed for the cursor set using setCursor to be respected, as it relies on sun.lwawt.LWWindowPeer#getPeerUnderCursor, which is updated according to mouse events. If it's wrong, the cursor is also wrong. See the YT issue for details:

https://youtrack.jetbrains.com/issue/JBR-7481

NikitkoCent commented 2 months ago

Looks good. I'll merge it into main and wait for the post-commit testing results. If they're fine, the patch will also be delivered to jbr17 and jbr21. Until then let's keep the PR open (so that I won't forget to finish all the work).

UPD: pushed to main.

NikitkoCent commented 2 months ago

Everything seems fine, the fix has been delivered to jbr17, jbr21 as well.