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

The screen ratio is scaled #293

Closed
KhalilSecurity opened this issue Feb 8, 2024 · 7 comments
Closed

The screen ratio is scaled #293

KhalilSecurity opened this issue Feb 8, 2024 · 7 comments

Comments

@KhalilSecurity
Copy link

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

@kangyu-california
Copy link
Owner

kangyu-california commented Feb 8, 2024

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

@KhalilSecurity
Copy link
Author

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.

@kangyu-california
Copy link
Owner

kangyu-california commented Feb 8, 2024

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.

@KhalilSecurity
Copy link
Author

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

@KhalilSecurity
Copy link
Author

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

@kangyu-california
Copy link
Owner

kangyu-california commented Feb 9, 2024

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

kangyu-california added a commit that referenced this issue Feb 10, 2024
…void sudden window coordinate change on Win11
@kangyu-california
Copy link
Owner

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

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

No branches or pull requests

2 participants