Skip to content

Fix custom title-bar dragging - #1

Draft
HC4074 wants to merge 1 commit into
mainfrom
agent/fix-window-drag
Draft

Fix custom title-bar dragging#1
HC4074 wants to merge 1 commit into
mainfrom
agent/fix-window-drag

Conversation

@HC4074

@HC4074 HC4074 commented Aug 17, 2026

Copy link
Copy Markdown
Owner

What changed

  • Made the complete custom title bar a hit-testable drag surface.
  • Restricted drag handling to the left mouse button and normal window state.
  • Preserved double-click maximize and restore behavior.

Root cause

The title-bar border had no background, so its empty area did not participate in WPF hit testing. Most of the visible bar therefore never delivered the mouse event that calls DragMove().

Validation

  • Published the self-contained Release build successfully.
  • Launched the packaged executable and confirmed the main window initializes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant