performance

This commit is contained in:
Kevin Lamonte 2019-11-06 11:02:29 -06:00
parent 17b598e94c
commit ee831bf6d8
4 changed files with 8 additions and 9 deletions

View 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;
}

View file

@ -1599,6 +1599,7 @@ public class TApplication implements Runnable {
invoke.run();
}
invokeLaters.clear();
doRepaint();
}
}

View file

@ -910,10 +910,7 @@ public class TTerminalWidget extends TScrollableWidget
}
});
}
if (getApplication() != null) {
getApplication().postEvent(new TMenuEvent(
TMenu.MID_REPAINT));
}
app.doRepaint();
}
}

View file

@ -1025,11 +1025,6 @@ public class ECMA48 implements Runnable {
// the input streams.
if (stopReaderThread == false) {
stopReaderThread = true;
try {
readerThread.join(1000);
} catch (InterruptedException e) {
// SQUASH
}
}
// Now close the output stream.