Skip to content

Commit

Permalink
Fix #207 (#208)
Browse files Browse the repository at this point in the history
Fix #207
  • Loading branch information
ghost1372 authored Jan 16, 2025
1 parent 4e7e825 commit 004da74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/WinUIEx/TransparentTintBackdrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ protected override Windows.UI.Composition.CompositionBrush CreateBrush(Windows.U
/// <inheritdoc />
protected override void OnTargetConnected(ICompositionSupportsSystemBackdrop connectedTarget, XamlRoot xamlRoot)
{
var inspectable = connectedTarget.As<IInspectable>();
var xamlSource = DesktopWindowXamlSource.FromAbi(inspectable.ThisPtr);
var hWnd = xamlSource.SiteBridge.SiteView.EnvironmentView.AppWindowId.Value;
ulong hWnd = xamlRoot.ContentIslandEnvironment.AppWindowId.Value;

monitor = new WindowMessageMonitor((IntPtr)hWnd);
monitor.WindowMessageReceived += Monitor_WindowMessageReceived;
Expand Down

0 comments on commit 004da74

Please sign in to comment.