mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 11:50:19 -06:00
performance
This commit is contained in:
parent
17b598e94c
commit
ee831bf6d8
4 changed files with 8 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1599,6 +1599,7 @@ public class TApplication implements Runnable {
|
|||
invoke.run();
|
||||
}
|
||||
invokeLaters.clear();
|
||||
doRepaint();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -910,10 +910,7 @@ public class TTerminalWidget extends TScrollableWidget
|
|||
}
|
||||
});
|
||||
}
|
||||
if (getApplication() != null) {
|
||||
getApplication().postEvent(new TMenuEvent(
|
||||
TMenu.MID_REPAINT));
|
||||
}
|
||||
app.doRepaint();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue