Skip to content

fix: move windows when workspace icons are dropped - #283

Merged
M4n0x merged 1 commit into
mainfrom
fix/workspace-window-drop
Oct 23, 2026
Merged

M4n0x merged 1 commit into
mainfrom
fix/workspace-window-drop

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Workspace icons can be picked up, but dropping them on another workspace does not move their windows. Fixes #280; follows up on #271.

Changes

  • Use an AppKit destination for the AppKit drag source, registering the same pasteboard type and validating the originating store and live drag token before consuming the drop synchronously.
  • Include cell padding in the native drop target while keeping selection and underline animations in the outer SwiftUI view. Preserve normal clicks and the AeroSpace/yabai capability gate.

Testing

  • swift test: all 735 tests passed (291 XCTest tests and 444 Swift Testing tests).
  • Offscreen integration tests hit-test the destination label and padding, call native enter/prepare/drop callbacks, and verify app and individual-window moves. Invalid, cancelled and duplicate drops are rejected; unsupported managers have no native targets.
  • Window-manager commands use fixtures. Live verification was attempted with a scratch bar and an owned test window, but automation returned noWindowsAvailable for the floating bar. The physical drag remains unverified; both temporary processes were stopped.
  • CI passed on rerun with unchanged code. The first attempt hit timing limits in existing provider and build-metadata tests.
  • git diff --check and commitlint passed.

Before:

Before: three windows in workspace 1

Native drag destination entered:

Native destination: workspace 2 is highlighted

After the native drop callback:

After: the first document moved to workspace 2

Merging

Merge or rebase; squashing with the PR title is also safe.

gpt-6.1-sol via Codex in T3 Code.

Register native workspace destinations for the native drag source's
pasteboard type, authenticate the source and live token, and consume the
drop synchronously. Keep selection indicators outside the hosting boundary.

Exercise hit-testing and native destination callbacks before asserting app
and window moves, rather than calling the move controller directly.

Closes #280
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 23, 2026 11:30
@M4n0x
M4n0x merged commit e4d994d into main Oct 23, 2026
13 of 14 checks passed
@M4n0x
M4n0x deleted the fix/workspace-window-drop branch October 23, 2026 12:05
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropping workspace icons does not move their windows

1 participant