Not dead note
[fanfix.git] / src / jexer / TTerminalWindow.java
index 93d0fa1575a5a6e550ef78b26db87d7f22a081d7..74f71edc7c0af8b9387dddca88a246d275810a9a 100644 (file)
@@ -300,6 +300,19 @@ public class TTerminalWindow extends TScrollableWindow
 
     }
 
+    /**
+     * Handle window close.
+     */
+    @Override
+    public void onClose() {
+        emulator.close();
+        if (shell != null) {
+            terminateShellChildProcess();
+            shell.destroy();
+            shell = null;
+        }
+    }
+
     /**
      * Handle window/screen resize events.
      *
@@ -355,19 +368,6 @@ public class TTerminalWindow extends TScrollableWindow
         } // synchronized (emulator)
     }
 
-    /**
-     * Handle window close.
-     */
-    @Override
-    public void onClose() {
-        emulator.close();
-        if (shell != null) {
-            terminateShellChildProcess();
-            shell.destroy();
-            shell = null;
-        }
-    }
-
     /**
      * Handle keystrokes.
      *