Skip to content

Restrict document window drag docking to chrome targets#1066

Merged
wieslawsoltes merged 1 commit intowieslawsoltes:masterfrom
danwalmsley:feature/window-drag-scope-setting
Mar 9, 2026
Merged

Restrict document window drag docking to chrome targets#1066
wieslawsoltes merged 1 commit intowieslawsoltes:masterfrom
danwalmsley:feature/window-drag-scope-setting

Conversation

@danwalmsley
Copy link
Copy Markdown
Contributor

This changes floating document window drag behavior so drags started from DocumentTabStrip no longer dock back into background windows over the full dock surface by default. Instead, they only target window chrome surfaces such as tab strips/titlebars, which restores the expected titlebar-to-titlebar docking behavior.

The drag target scope is now configurable through DockSettings.DocumentWindowDragScope, using the new WindowDragDockScope enum. The default is WindowChrome, while FullWindow preserves the broader docking behavior if needed. The host-window drag pipeline was updated to honor that scope, and existing HostWindowState headless tests still pass.

@wieslawsoltes wieslawsoltes merged commit cfe982f into wieslawsoltes:master Mar 9, 2026
8 checks passed
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.

2 participants