Skip to content

Commit

Permalink
8269374: Menu inoperable after setting stage to second monitor
Browse files Browse the repository at this point in the history
Reviewed-by: kcr, arapte
  • Loading branch information
Jose Pereda committed Jul 20, 2021
1 parent 1992bd5 commit c490ddf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,14 @@ protected int _getNativeFrameBuffer(long ptr) {
@Override native protected boolean _enterFullscreen(long ptr, boolean animate, boolean keepRatio, boolean hideCursor);
@Override native protected void _exitFullscreen(long ptr, boolean animate);

@Override
protected void notifyResize(int width, int height) {
super.notifyResize(width, height);

// After resizing, do a move notification to force the view relocation.
// When moving to a screen with different DPI settings, its location needs
// to be recalculated.
updateLocation();
}
}

1 comment on commit c490ddf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.