kangyu-california / PersistentWindows

fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The screen ratio is scaled

KhalilSecurity opened this issue · comments

Filmora has been going crazy after screen comes back on, spamming me the message the screen ratio is scaled. Could that be related to a recent update (it started happening last 3 months)?

2
1

Is this happening on Win11 only or affecting Win10 as well?
Starting from 5.45 release (around 10/2023), PW has DPI (scale ratio) awareness feature to improve text sharpness of its menu & dialog when monitor has a scale ratio other than 100%. but that is supposed to affect only PW itself.
image

You may pause auto restore from menu to test if the issue still exist.
Or revert to release 5.43

Is this happening on Win11 only or affecting Win10 as well? Starting from 5.45 release (around 10/2023), PW has DPI (scale ratio) awareness feature to improve text sharpness of its menu & dialog when monitor has a scale ratio other than 100%. but that is supposed to affect only PW itself. image

You may pause auto restore from menu to test if the issue still exist. Or revert to release 5.43

Thanks for your quick response. I'm using Windows 11, and my display is at the default 100%. Could there be another feature causing this? the only affected app is filmora, and I'm going to contact their support as well to see if this is something they can fix in their end.

There are several Win11 specific issues likely related to scale ratio (#289, #293 and #276), they may be related.
I made a speculative fix to disable calling DPI awareness function during capture/restore for Windows 11.
You may try
PersistentWindows5.51_patch289.zip

Another possibility is that Filmora want to manage window position on its own, so maybe try PW command line -ignore_process "filmora.exe" to avoid PW touching that window.

Those are great options provided. Thank you
Testing patch now and will report back.

Unfortunately, neither solution worked.
Note that I used this as task scheduler arguments
-delay_start 10 -ignore_process "Wondershare Filmora.exe"

I think we have skipped the most important step, i.e. verify whether the issue is related to PW or not,
To do that, the following procedure is recommended

  1. capture existing windows to disk
  2. exit PW
  3. try to reproduce the problem by put monitor/PC to sleep & wake up
  4. relaunch PW, restore window position from disk

Just created win11 branch to remove the dpi awareness code, the new win11 patch is in 5.51 release page,
https://github.com/kangyu-california/PersistentWindows/files/14227995/PersistentWindows5.51_win11_patch.zip