Skip to content

Commit

Permalink
Apply window properties async
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Jan 13, 2025
1 parent 187afc6 commit 4656cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skiko/src/awtMain/objectiveC/macos/MetalRedrawer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static void setWindowProperties(NSWindow* window, jboolean transparency) {
} else {
// In case of OpenJDK, EDT thread != NSThread main thread
__weak NSWindow *weakWindow = window;
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
setWindowPropertiesUnsafe(weakWindow, transparency);
});
}
Expand Down

0 comments on commit 4656cb8

Please sign in to comment.