(appId: number)
| 85 | } |
| 86 | |
| 87 | export function focusWindow(appId: number): void { |
| 88 | const win = windows.find((w) => w.appId === appId); |
| 89 | if (win) { |
| 90 | win.zIndex = ++nextZ; |
| 91 | win.minimized = false; |
| 92 | windows = [...windows]; |
| 93 | notify(); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | export function minimizeWindow(appId: number): void { |
| 98 | const win = windows.find((w) => w.appId === appId); |