JBR-6433 Rounded corners of popups disappear after a while

Removed opacity from CAMetalLayer for layers with rounded corners

(cherry picked from commit e9bf36f41a)
This commit is contained in:
Alexey Ushakov
2023-12-15 19:54:49 +01:00
committed by jbrbot
parent a0f5883331
commit e88b61207b

View File

@@ -2918,6 +2918,7 @@ JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeSetRoundedCor
w.contentView.wantsLayer = YES;
w.contentView.layer.cornerRadius = radius;
w.contentView.layer.masksToBounds = YES;
w.contentView.layer.opaque = NO;
if (borderWidth > 0) {
CGFloat alpha = (((borderRgb >> 24) & 0xff) / 255.0);