Revision: 2972
          http://vexi.svn.sourceforge.net/vexi/?rev=2972&view=rev
Author:   clrg
Date:     2008-07-19 00:17:07 +0000 (Sat, 19 Jul 2008)

Log Message:
-----------
Attempt to fix the Maximize bug - avoid situations where asynchronous Surface 
Maximize/Minimize state change inadvertently triggers Box Maximize/Minimize 
behaviour and causes a loop (Maximize->Minimize->repeat).  Using 
justTriggerTraps should fix this by making that loop impossible.

Modified Paths:
--------------
    trunk/core/org.vexi.core/src/org/vexi/core/Surface.java

Modified: trunk/core/org.vexi.core/src/org/vexi/core/Surface.java
===================================================================
--- trunk/core/org.vexi.core/src/org/vexi/core/Surface.java     2008-07-18 
19:34:50 UTC (rev 2971)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Surface.java     2008-07-19 
00:17:07 UTC (rev 2972)
@@ -213,7 +213,8 @@
 
         public Object run(Object o) throws JSExn {
             if (!inputEvent) {
-                root.putAndTriggerTraps(JSU.S(name), value);
+                root.justTriggerTraps(JSU.S(name), value);
+                if (name.equals("Close")) dispose(true);
                 return o;
             }
 
@@ -554,5 +555,10 @@
         }
 
     }
-
+    
+    static int counter=0;
+       int id=counter++;
+    public String toString(){
+        return "Surface " + id;
+    }
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to