ecere/gui/Window: Only flashing top level windows
authorJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 09:27:27 +0000 (05:27 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 09:27:27 +0000 (05:27 -0400)
- Correction to c97de49fba874446ee855635aa8c10ed27037b30

ecere/src/gui/Window.ec

index 5764d83..69289e2 100644 (file)
@@ -6363,7 +6363,8 @@ public:
                         else if(creationActivation == activate || creationActivation == flash)
                         {
                            MakeActive();
-                           Flash();
+                           if(this == rootWindow)
+                              Flash();
                         }
                      }
 
@@ -6866,7 +6867,8 @@ public:
       else if(!active)
       {
          MakeActive();
-         Flash();
+         if(this == rootWindow)
+            Flash();
       }
    }
 
@@ -9136,7 +9138,8 @@ public:
                else if((creationActivation == activate || creationActivation == flash) && !object)
                {
                   MakeActive();
-                  Flash();
+                  if(this == rootWindow)
+                     Flash();
                }
 
                //SetVisibility(!parent.style.hidden && (style.hidden ? false : true));