Open startup terminal as a floating window
This commit is contained in:
1 parent
722e182076
commit
5d7e9857ca
2 files changed
+3
-2
No files matched your search
@@ -52,9 +52,10 @@ class WindowManager {
|
||||
return id in this.floatingRects;
|
||||
}
|
||||
|
||||
openTerminal(startupCommand = '') {
|
||||
openTerminal(startupCommand = '', options: { floating?: boolean } = {}) {
|
||||
const terminal = { id: `kitty-${this.nextTerminalNumber++}`, startupCommand };
|
||||
this.terminals.push(terminal);
|
||||
if (options.floating) this.floatingRects[terminal.id] = null;
|
||||
this.focus(terminal.id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user