Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows default color picker + DPI change issue #803

Closed
CarlColijn opened this issue Apr 20, 2021 · 1 comment
Closed

Windows default color picker + DPI change issue #803

CarlColijn opened this issue Apr 20, 2021 · 1 comment
Labels
DPI Issue Collection of DPI issues Status: Fixed in Next Build Fixed in the next Sandboxie version

Comments

@CarlColijn
Copy link

Describe the bug
When a sandboxed application opens the default Windows color picker dialog (Windows common controls) when the DPI is set to something not 100%, mouse clicks in the color hue/saturation square and on the value slider trigger a mouse cursor reposition outside of the dialog's bounds, making the dialog unworkable. I got this bug to show for Paint.exe as well as FireFox (when clicking on a color picker form element), so I assume it is just the common controls dialog itself that's at fault.

To Reproduce

  1. Set the display's DPI to e.g. 150%
  2. Force-start Paint.exe in a sandbox
  3. Click the color picker toolbar button
  4. Click anywhere in the mentioned parts of the dialog

Screenshots
See FireFox in action on YouTube, though Paint.exe exhibits identical behavior (I found out about that after the above video was uploaded; I was going to use it for reporting a FireFox bug).

System details and installed software (please provide the following information):

  • Windows 10 Home, Version 10.0.19041 Build 19041
  • Sandboxie Plus 5.49.7 64 bit
  • I don't know which Sandboxie version started this; I virtually never encounter sandboxed color pickers :)
  • Other security software: Windows Defender, real time protection: on

Additional context
It seems the color picker dialog is itself actively repositioning the cursor, so there's nothing stopping that. Somehow Sandboxie Plus manages to make the common control code not be able to retrieve the right DPI settings when repositioning, and/or doesn't allow the host app to show the color picker dialog in the right DPI state (think SetThreadDpiAwarenessContext and such)?

Sandboxie configuration
Gist of the relevant parts of my Sandboxie.ini

@DavidXanatos DavidXanatos added the DPI Issue Collection of DPI issues label Jan 7, 2022
@DavidXanatos
Copy link
Member

this should be fixed in build 1.0.10

@DavidXanatos DavidXanatos added the Status: Fixed in Next Build Fixed in the next Sandboxie version label Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DPI Issue Collection of DPI issues Status: Fixed in Next Build Fixed in the next Sandboxie version
Projects
None yet
Development

No branches or pull requests

3 participants