mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-3098 move repaintPeer event from AppKit thread to EDT on macos
This commit is contained in:
@@ -745,7 +745,11 @@ public class LWWindowPeer
|
||||
}
|
||||
if (tResized || pResized || invalid || isNewDevice) {
|
||||
handleResize(w, h, true);
|
||||
repaintPeer();
|
||||
// Changing window size fires up the execution of the current method on AppKit thread and as result it could
|
||||
// leads to race condition with paint event on EDT. Running repaintPeer on EDT eliminates such issue.
|
||||
SunToolkit.executeOnEventHandlerThread(getTarget(), () -> {
|
||||
repaintPeer();
|
||||
});
|
||||
}
|
||||
|
||||
repositionSecurityWarning();
|
||||
|
||||
Reference in New Issue
Block a user