changeset 10835:6e664b10484e

8077686: OperationTimedOut exception inside from XToolkit.syncNativeQueue call on Ubuntu 15.04 Reviewed-by: alexsch, serb
author azvegint
date Mon, 15 Jun 2015 14:43:31 +0300
parents e0188dc154f8
children 2d3e5573286d
files src/solaris/classes/sun/awt/X11/XToolkit.java
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XToolkit.java	Fri May 29 11:05:52 2015 +0200
+++ b/src/solaris/classes/sun/awt/X11/XToolkit.java	Mon Jun 15 14:43:31 2015 +0300
@@ -2399,7 +2399,7 @@
 
     private static XEventDispatcher oops_waiter;
     private static boolean oops_updated;
-    private static boolean oops_move;
+    private static int oops_position = 0;
 
     /**
      * @inheritDoc
@@ -2426,9 +2426,12 @@
             oops_updated = false;
             long event_number = getEventNumber();
             // Generate OOPS ConfigureNotify event
-            XlibWrapper.XMoveWindow(getDisplay(), win.getWindow(), oops_move ? 0 : 1, 0);
+            XlibWrapper.XMoveWindow(getDisplay(), win.getWindow(), ++oops_position, 0);
             // Change win position each time to avoid system optimization
-            oops_move = !oops_move;
+            if (oops_position > 50) {
+                oops_position = 0;
+            }
+
             XSync();
 
             eventLog.finer("Generated OOPS ConfigureNotify event");