changeset 5248:5fd60ebdb9d5

Fix for RT-32974 LensTouchInputSupport calls GestureSupport methods from the wrong thread. Move calls to correct thread. Reviewed by Rafi Tayar. Tested with HelloSanity on beagle/pi.
author Lisa.Selle@oracle.com
date Thu, 03 Oct 2013 11:19:44 -0400
parents 8baf1c812ced
children 98ddce26ad7b
files modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java	Thu Oct 03 16:00:56 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java	Thu Oct 03 11:19:44 2013 -0400
@@ -842,6 +842,10 @@
     }
 
     private Object _runLoop() {
+        if (!_initialize()) {
+            LensLogger.getLogger().severe("Display failed initialization");
+            throw new RuntimeException("Display failed initialization");
+        }
         final RunLoopControl control = new RunLoopControl();
 
         //push this new instance on the stack
@@ -921,12 +925,6 @@
 
     @Override
     protected void runLoop(Runnable launchable) {
-
-        if (!_initialize()) {
-            LensLogger.getLogger().severe("Display failed initialization");
-            throw new RuntimeException("Display failed initialization");
-        }
-
         _invokeLater(launchable);
         Thread toolkitThread = new Thread(
         new Runnable() {