performance
[fanfix.git] / examples / JexerTilingWindowManager2.java
index 2a1512d6ec7af63edb12d10c9fed309d093eef32..0e360b6d04c1d9e0e4d4dc1306992c111ff2ae01 100644 (file)
@@ -146,6 +146,8 @@ public class JexerTilingWindowManager2 extends TApplication {
     private void createRootTerminal() {
         assert (root == null);
         disableMenuItem(MENU_RESPAWN_ROOT);
+        enableMenuItem(MENU_SPLIT_VERTICAL);
+        enableMenuItem(MENU_SPLIT_HORIZONTAL);
         root = createTerminal();
     }
 
@@ -165,6 +167,10 @@ public class JexerTilingWindowManager2 extends TApplication {
                     } else {
                         source.getApplication().enableMenuItem(
                                 MENU_RESPAWN_ROOT);
+                        source.getApplication().disableMenuItem(
+                                MENU_SPLIT_VERTICAL);
+                        source.getApplication().disableMenuItem(
+                                MENU_SPLIT_HORIZONTAL);
                         source.remove();
                         root = null;
                     }