Open startup terminal as a floating window

This commit is contained in:
SirBlob committed 2026-11-01 01:38:51 -05:00
1 parent 722e182076
commit 5d7e9857ca
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -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);
}