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.28k stars 193 forks source link

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

Closed stachenov closed 1 week ago

stachenov commented 1 month 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 1 week 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 1 week ago

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