Skip to content

[Feature/bug] Floating windows overlap completely on launch, masking other open windows #61

Description

@ffs-akl

When multiple windows are spawned or toggled into floating mode, they are all rendered at the exact same default coordinates with identical dimensions. Because there is no initial position offset, windows stack perfectly on top of each other.

This creates a usability issue where users cannot visually distinguish how many floating windows exist on the desktop, nor can they access lower-layered windows without manually dragging the top windows away.

Expected Behavior

New floating windows should apply a position offset (e.g., cascading by 20–30px or smart-positioning) so that title bars or borders of underlying windows remain visible.

Suggested Solutions

  • Cascading Offset: Stagger newly created floating windows (e.g., x += offset, y += offset based on current floating window count).
  • Smart/Centered Placement: Auto-position new floating windows relative to the active screen center or cursor location.
  • Config Option: Expose a configuration setting (e.g., floating_cascade_offset = 24 or floating_placement = "cascade").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions