microsoft / microsoft/microsoft-ui-xaml

Unexpected "InputSiteWindowClass" window appears in WinUI 3 app

Open
#10,319 13 comments 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

I am experiencing an issue in my WinUI 3 application where an unexpected window with the class name InputSiteWindowClass appears, even though I am only initializing the main Window. This window is not explicitly created or referenced in my code, and it seems to be related to internal framework behavior, possibly related to input handling or focus management.

This issue doesn't occur in a similar app built using the same version of WinUI 3, which makes me believe it could be a bug related to how the framework handles certain window classes.

### Steps to reproduce the bug

Create a basic WinUI 3 app (or use the sample app from GitHub).

Launch the app and inspect the UI hierarchy using Inspect.exe or Spy++.
Observe that an unexpected window with the class name InputSiteWindowClass appears, which is not explicitly instantiated in the code.

### Expected behavior

Only the main Window should appear with the specified content. The InputSiteWindowClass should not be instantiated unless it is a part of the framework’s internal handling of input, which should be transparent to the user.

### Screenshots

![Image](https://github.com/user-attachments/assets/e553f12d-d558-46c6-be25-7831c9bf5785)

### NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

### Windows version

Windows 11 (24H2): Build 26100

### Additional context

The unexpected window is detected by Testing Tool and appears as a greyed-out object.
Tried debugging the code and checking for window creation in OnLaunched, but no explicit reference to InputSiteWindowClass is found.
Similar behavior is observed in a fresh WinUI 3 app that follows the same structure, but not in another app built with WinUI 3.
Other tools like Inspect.exe and Spy++ also show this window in the UI tree.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in a basic WinUI 3 app or the referenced sample using Windows App SDK 1.6.3 on Windows 11 24H2, then inspect the UI hierarchy with Inspect.exe or Spy++. Compare the observed InputSiteWindowClass behavior with the similar WinUI 3 app; done means establishing whether this framework window is expected internal behavior or an actionable bug.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.