Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
/ jfx11u Public archive

Commit

Permalink
8296654: [macos] Crash when launching JavaFX app with JDK that target…
Browse files Browse the repository at this point in the history
…s SDK 13

Backport-of: 5b96d348ebcabb4b6d2e1d95937de3c82a1f6876
  • Loading branch information
kevinrushforth committed Feb 3, 2023
1 parent 509d6cf commit 59fa532
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ - (void)setFrameSize:(NSSize)newSize
(*env)->CallVoidMethod(env, self->jView, jViewNotifyResize, (int)newSize.width, (int)newSize.height);
GLASS_CHECK_EXCEPTION(env);

[self->nsView removeTrackingRect:self->trackingRect];
if (self->trackingRect) {
[self->nsView removeTrackingRect:self->trackingRect];
}
self->trackingRect = [self->nsView addTrackingRect:[self->nsView bounds] owner:self->nsView userData:nil assumeInside:NO];
}

Expand All @@ -278,13 +280,17 @@ - (void)setFrame:(NSRect)frameRect
(*env)->CallVoidMethod(env, self->jView, jViewNotifyResize, (int)frameRect.size.width, (int)frameRect.size.height);
GLASS_CHECK_EXCEPTION(env);

[self->nsView removeTrackingRect:self->trackingRect];
if (self->trackingRect) {
[self->nsView removeTrackingRect:self->trackingRect];
}
self->trackingRect = [self->nsView addTrackingRect:[self->nsView bounds] owner:self->nsView userData:nil assumeInside:NO];
}

- (void)updateTrackingAreas
{
[self->nsView removeTrackingRect:self->trackingRect];
if (self->trackingRect) {
[self->nsView removeTrackingRect:self->trackingRect];
}
self->trackingRect = [self->nsView addTrackingRect:[self->nsView bounds] owner:self->nsView userData:nil assumeInside:NO];
}

Expand Down

1 comment on commit 59fa532

@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.