On Sat, 14 Nov 2026 03:15:25 GMT, Michael Strauß <[email protected]> wrote:
> This PR fixes event dispatch between a header button overlay and application > content. The problem can be seen when an application button is placed next to > the minimize button. Then, moving the cursor from the application button to > the minimize button doesn't clear the hover state of the application button, > because the scene doesn't receive an EXIT event. > > The solution requires tracking who owns the cursor (the header button overlay > or the application content), and then dispatching events correctly, including > ENTER/EXIT. It also requires correctly tracking press-drag-release gestures, > which capture the cursor. > > For application content, the Scene tracks PDR gestures, but we need the same > mechanism in Glass, where we can decide whether to dispatch events to the > application or to the overlay. The new class `HeaderButtonEventRouter` > encapsulates that dispatch logic. > > I've also added several robot tests that exercise the new code with actual > mouse events. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Is this a Windows-specific issue? Does it work correctly on macOS/Linux? ------------- PR Comment: https://git.openjdk.org/jfx/pull/2370#issuecomment-6921982653
