Skip to content

win-capture: Add Edge/WebView2 to WGC partial match classes#13423

Open
gundarapuashwin wants to merge 2 commits into
obsproject:masterfrom
gundarapuashwin:fix/wgc-edge
Open

win-capture: Add Edge/WebView2 to WGC partial match classes#13423
gundarapuashwin wants to merge 2 commits into
obsproject:masterfrom
gundarapuashwin:fix/wgc-edge

Conversation

@gundarapuashwin
Copy link
Copy Markdown

@gundarapuashwin gundarapuashwin commented May 10, 2026

Add 'Edge' to wgc_partial_match_classes so that WebView2-based applications default to WGC capture mode instead of BitBlt.

Fixes #13359

Description

WebView2-based applications were defaulting to BitBlt capture instead of
WGC (Windows Graphics Capture) because their window class wasn't in the
detection list. Added "Edge" to wgc_partial_match_classes so these apps
use WGC capture automatically.

Motivation and Context

Fixes #13359. Users of WebView2-based games (Construct 3, Tauri apps)
get a white screen with BitBlt capture. WGC correctly captures these
Chromium-based windows.

How Has This Been Tested?

Compiled locally. The change is a one-line addition to an existing
detection list. Existing Chrome/Mozilla detection is unaffected.

Types of changes

Bug fix (non-breaking change which fixes an issue)

Tweak (non-breaking change to improve existing functionality)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Ashwin Gundarapu added 2 commits May 10, 2026 14:01
Add 'Edge' to wgc_partial_match_classes so that WebView2-based
applications default to WGC capture mode instead of BitBlt.

Fixes obsproject#13359
@ToadLobe
Copy link
Copy Markdown

Thank you for this!

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.

WebView2 applications default to wrong capture mode

2 participants