changeset 7241:4d490de09504

Fix for RT-37369 [Monocle] When a child window is dismissed, the main window does not repaint right away Reviewed by dhill, dblaukopf Tested with HelloSanity
author Lisa.Selle@oracle.com
date Wed, 11 Jun 2014 09:43:00 -0400
parents 5527e3f6b542
children 0cfa9e528b26
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindowManager.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java	Wed Jun 11 12:31:10 2014 +0300
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java	Wed Jun 11 09:43:00 2014 -0400
@@ -403,6 +403,7 @@
     @Override
     protected void notifyDestroy() {
         super.notifyDestroy();
+        MonocleWindowManager.getInstance().repaintAll();
     }
 
     @Override
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindowManager.java	Wed Jun 11 12:31:10 2014 +0300
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindowManager.java	Wed Jun 11 09:43:00 2014 -0400
@@ -158,4 +158,10 @@
         return focusedWindow;
     }
 
+    public void repaintAll() {
+        for (int i = 0; i < windows.length; i++) {
+            ((MonocleView)(windows[i].getView())).notifyRepaint();
+        }
+    }
+
 }