Skip to content

Added dpi awareness to input to fix cursor position mismatch - #111

Open
TejasPersonal wants to merge 1 commit into
jamesstringer90:mainfrom
TejasPersonal:fix/dpi-cursor-pos-scaling
Open

Added dpi awareness to input to fix cursor position mismatch#111
TejasPersonal wants to merge 1 commit into
jamesstringer90:mainfrom
TejasPersonal:fix/dpi-cursor-pos-scaling

Conversation

@TejasPersonal

Copy link
Copy Markdown

when display scaling in the VM was set to anything but 100% the cursor position wouldn't match the position being clicked on and would cause the VM to become unusable

simple dpi awareness fix

lishengshang pushed a commit to lishengshang/appsandbox that referenced this pull request Aug 14, 2026
Cursor clicks landed at the wrong position whenever the guest display
scaling was not 100%. Make the input helper per-monitor DPI aware so
GetCursorPos-based input mapping matches the actual monitor scale.

Upstream PR jamesstringer90#111 (TejasPersonal). Applied without the PR's
compile_commands.json build artifact and .vscode/settings.json.

Co-authored-by: TejasPersonal <tejaspersonal@users.noreply.github.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.

1 participant