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

Border Breaks when using DPI Scaling #1512

Closed
DrPleaseRespect opened this issue Jan 4, 2022 · 1 comment
Closed

Border Breaks when using DPI Scaling #1512

DrPleaseRespect opened this issue Jan 4, 2022 · 1 comment
Labels
DPI Issue Collection of DPI issues Duplicate This issue or pull request already exists Status: Fixed in Next Build Fixed in the next Sandboxie version

Comments

@DrPleaseRespect
Copy link

DrPleaseRespect commented Jan 4, 2022

Describe the problem
The border doesn't match the window if the window is moved from one screen to another

To Reproduce
Steps to reproduce the behavior:

  1. Have 2 Monitors
  2. Set the Main Display to have 125% scaling
  3. Set the Second Display to 100% scaling
  4. Set Sandboxed window border to Always show
  5. Start an explorer.exe window and drag the window from the Main Display to the Second Display

Screenshots
Main Monitor: https://i.imgur.com/vMudUMh.png
Second Monitor: https://i.imgur.com/xt2oMIu.png

Expected behavior
The Border should match the frame of the window in the second screen

System details and installed software

  • Windows 10 Education 21H1 (OS Build 19043.1415)
  • Sandboxie-Plus Version 1.0.6 x64
  • Microsoft Windows Defender
  • Main Screen (1920x1080, Scale=125%)
  • Second Screen (1366x768, Scale=100%)

Additional context
I have a custom theme installed using SecureUxTheme

Sandboxie configuration

My initial sandboxie.ini settings
[GlobalSettings]
FileRootPath=\??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
SeparateUserFolders=y
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
NetworkEnableWFP=n
EditAdminOnly=n
ForceDisableAdminOnly=n
ForgetPassword=n
Template=WindowsRasMan
Template=WindowsLive
Template=OfficeLicensing
Template=OfficeClickToRun
Template=InternetDownloadManager
Template=7zipShellEx
EnableObjectFiltering=n
EnableWin32kHooks=y

[UserSettings_643E0647]
SbieCtrl_AutoStartAgent=SandMan.exe
SbieCtrl_EnableAutoStart=y

[DefaultBox]
Enabled=y
AutoRecover=n
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00ffff,ttl,2
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
ConfigLevel=9
BoxNameTitle=y
ClosePrintSpooler=y
OpenClipboard=n
CopyLimitKb=81920
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices

[Security_Hardened_Sandbox]
Enabled=y
AutoRecover=n
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#0000ff,on,2
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=Chrome_Phishing_DirectAccess
Template=Firefox_Phishing_DirectAccess
Template=AutoRecoverIgnore
ConfigLevel=9
DropAdminRights=y
BoxNameTitle=y
CopyLimitKb=81920
ClosePrintSpooler=y
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
@ghost
Copy link

ghost commented Jan 4, 2022

I have DPI set up to 125% on all currently used displays and 100% on laptop screen which is disabled.
Both displays 125% DPI. One display ends exactly where right line ends
https://i.imgur.com/IilIqL2.png

@isaak654 isaak654 added Duplicate This issue or pull request already exists to investigate labels Jan 6, 2022
@DavidXanatos DavidXanatos added DPI Issue Collection of DPI issues Status: Fixed in Next Build Fixed in the next Sandboxie version labels Jan 7, 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 Duplicate This issue or pull request already exists Status: Fixed in Next Build Fixed in the next Sandboxie version
Projects
None yet
Development

No branches or pull requests

3 participants