changeset 6608:ee7c076c37c9

Fix for RT-36228 [IMX, Monocle] Monocle does not shut down cleanly on imx. Reviewed by dblaukopf. Tested with HelloSanity.
author Lisa.Selle@oracle.com
date Thu, 03 Apr 2014 10:46:48 -0400
parents 6ee1fdb759ff
children 934bd3a59e9f
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java	Thu Apr 03 14:19:29 2014 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindow.java	Thu Apr 03 10:46:48 2014 -0400
@@ -191,7 +191,7 @@
      */
     @Override
     public long getNativeWindow() {
-        return NativePlatformFactory.getNativePlatform().getScreen().getNativeHandle();
+        return id;
     }
 
     @Override
@@ -383,6 +383,7 @@
     @Override
     protected void notifyClose() {
         super.notifyClose();
+        close();
     }
 
     @Override