Skip to content

fix: win: disable IME on VM control window - #117

Open
foresee-io wants to merge 2 commits into
jamesstringer90:mainfrom
foresee-io:feat/ui-control
Open

fix: win: disable IME on VM control window#117
foresee-io wants to merge 2 commits into
jamesstringer90:mainfrom
foresee-io:feat/ui-control

Conversation

@foresee-io

Copy link
Copy Markdown

Disable IME context on VM control window.

Fix issue #116

Signed-off-by: Zhenyu FU <ysfcore@outlook.com>
Copilot AI lite review requested due to automatic review settings August 23, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The current IME-disabling call is missing the required <imm.h> include and may not actually affect the focused render child window that receives keyboard input.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR aims to fix Windows VM control window keyboard passthrough issues (Issue #116) by disabling the host IME context so IME composition and IME-switch shortcuts aren’t intercepted by the host while interacting with the VM display.

Changes:

  • Link against imm32 to use IME APIs on Windows.
  • Call ImmAssociateContextEx(hwnd, NULL, 0) during window creation to detach the IME context from the IDD display window.
File summaries
File Description
src/backend_win/vm_display_idd.c Disables IME context (via imm32) for the IDD display window to improve raw keyboard passthrough behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/backend_win/vm_display_idd.c
Comment thread src/backend_win/vm_display_idd.c
Signed-off-by: Zhenyu FU <ysfcore@outlook.com>
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.

2 participants