06 - Window Management
Tauri supports single-window and multi-window apps.
Common window operations
- Create additional windows
- Set title, size, always-on-top, decorations
- Listen for close/focus/resize events
Multi-window example
| Window | Responsibility |
|---|---|
| Main | Core workflow |
| Preferences | Settings editor |
| About | Version/license info |
Best practices
- Keep one source of truth for app state
- Sync window state through commands/events
- Prevent duplicate utility windows unless intended