jdk/src/solaris/classes/sun/awt/X11/XToolkit.java
changeset 20460 a60499e6e190
parent 20155 65bcc88496eb
child 21278 ef8a3a2a72f2
--- a/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Tue Oct 08 13:57:44 2013 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Tue Oct 08 15:17:22 2013 +0400
@@ -240,9 +240,14 @@
                 @Override
                 public void dispatchEvent(XEvent ev) {
                     if (ev.get_type() == XConstants.ConfigureNotify) {
-                        ((X11GraphicsEnvironment)GraphicsEnvironment.
-                         getLocalGraphicsEnvironment()).
-                            displayChanged();
+                        awtUnlock();
+                        try {
+                            ((X11GraphicsEnvironment)GraphicsEnvironment.
+                             getLocalGraphicsEnvironment()).
+                                displayChanged();
+                        } finally {
+                            awtLock();
+                        }
                     }
                 }
             });