Skip to content

Window management: windows lost off-screen on display change + dock right-click controls (minimise/maximise/close) #866

@jaylfc

Description

@jaylfc

Bug: windows become unreachable when the viewport shrinks

Repro (Jay): ran taOS fullscreen on an ultrawide with several windows open, then moved the taOS window/browser to a 16:9 display. The windows opened on the ultrawide were positioned off the smaller viewport - couldn't see them or move them onto the new display.

Cause: window positions are absolute and are not re-clamped when the viewport/display size changes (going from a wide to a narrow screen leaves windows beyond the right/bottom edge, with no way to drag them back since their title bars are off-screen).

Fix: on viewport resize (and on app focus), re-clamp every open window so its title bar stays within the visible bounds (nudge off-screen windows back in by their top-left, like macOS does). Consider a "gather windows" affordance too.

Feature: dock right-click controls

Right-click an app's dock icon -> a context menu with Minimise / Maximise / Close (and pin/unpin already exists). This also gives a way to recover/act on a window whose chrome is off-screen.

  • Close confirmation: some apps should confirm before closing (unsaved work, long-running task). Add an optional manifest flag (e.g. confirmOnClose: true in the app manifest); the dock Close (and the window close button) then show a confirm dialog for those apps.

Both live in the window manager / dock (desktop/src/stores/process-store.ts, Dock, Window.tsx). Logged for the queue; not started (wind-down).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions