Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix Win32 does not release capture on outside release of mouse button#3729

Open
Ryu204 wants to merge 1 commit into
SFML:masterSFML/SFML:masterfrom
Ryu204:bugfix/window-capture-releaseRyu204/SFML:bugfix/window-capture-releaseCopy head branch name to clipboard
Open

Fix Win32 does not release capture on outside release of mouse button#3729
Ryu204 wants to merge 1 commit into
SFML:masterSFML/SFML:masterfrom
Ryu204:bugfix/window-capture-releaseRyu204/SFML:bugfix/window-capture-releaseCopy head branch name to clipboard

Conversation

@Ryu204

@Ryu204 Ryu204 commented Jul 20, 2026

Copy link
Copy Markdown

Description

This PR is related to the issue #3724. Previously, a Win32 window would not release the mouse capture if its buttons were released after the mouse had stopped moving and stayed still outside.

The PR checks inside the window event handler for available capture release in case the received message is mouse button up.

Tasks

  • Tested on Windows

How to test this PR?

Please see #3724 (comment) to reproduce this bug.

@eXpl0it3r

eXpl0it3r commented Jul 20, 2026

Copy link
Copy Markdown
Member

ClangCL, MinGW and macOS failures are expected currently, should eventually be fixed with #3728

@github-project-automation github-project-automation Bot moved this to Planned in SFML 3.2.0 Jul 20, 2026
@eXpl0it3r eXpl0it3r added this to the 3.2 milestone Jul 20, 2026
@eXpl0it3r eXpl0it3r moved this from Planned to In Progress in SFML 3.2.0 Jul 20, 2026
@eXpl0it3r eXpl0it3r linked an issue Jul 20, 2026 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Win32: SetCapture/ReleaseCapture Stale State

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.