mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-225 [macos] IDEA hangs on attempt to call getDefaultScreenDevice() from EDT
(cherry picked from commit 76aba25) (cherry picked from commit df11dcc97bb5556ac5d0299b773a512b4f0bb5bb) (cherry picked from commitaeea6c1ca3) (cherry picked from commit3fbb520b07)
This commit is contained in:
@@ -1244,7 +1244,8 @@ public class SwingUtilities2 {
|
||||
|
||||
GraphicsConfiguration gc = c.getGraphicsConfiguration();
|
||||
AffineTransform tx = (gc == null) ? null : gc.getDefaultTransform();
|
||||
if (tx == null && !GraphicsEnvironment.isHeadless()) {
|
||||
// [tav] workaround deadlock on MacOSX until fixed, JRE-226
|
||||
if (!FontUtilities.isMacOSX && tx == null && !GraphicsEnvironment.isHeadless()) {
|
||||
tx = GraphicsEnvironment
|
||||
.getLocalGraphicsEnvironment()
|
||||
.getDefaultScreenDevice()
|
||||
|
||||
Reference in New Issue
Block a user