ecere/gui/Window: (#1083) Tweaked last commit
authorJerome St-Louis <jerome@ecere.com>
Sun, 15 Jun 2014 06:42:40 +0000 (02:42 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sun, 15 Jun 2014 06:43:53 +0000 (02:43 -0400)
- Calling OnMouseLeave for remembered ancestors from Destroy()

ecere/src/gui/Window.ec

index b269296..44f31bf 100644 (file)
@@ -5454,6 +5454,15 @@ private:
          guiApp.prevWindow = null;
          OnMouseLeave(0);
       }
+      else
+      {
+         for(w : guiApp.overWindows; w == this)
+         {
+            OnMouseLeave(0);
+            guiApp.overWindows.TakeOut(w);
+            break;
+         }
+      }
       if(guiApp.caretOwner == this)
       {
          guiApp.interfaceDriver.SetCaret(0,0,0);