Todd1561 / TANWindowMgr

Reposition windows at the click of the mouse
88 stars 7 forks source link

Many apps not restoring to the correct size and position #26

Open nickwelsh1 opened 1 year ago

nickwelsh1 commented 1 year ago

I switch from a dual screen setup (of two 4K screens each at display setting of 125% scale, screen 1 landscape, screen 2 portrait), to another dual screen setup of (screen 1 4K laptop screen at 250% scale and screen 2 fullHD screen at 100% scale. I find many apps are not restoring to the correct size and position. Some apps appear to be roughly double the width of my 2 screens combined.

Apps affected include Notepad, VScode, GitKraken.

Looking in settings.ini at lines like Code,3842,654,1617,5286,1,Home notepad++,-5,2,1158,617,1,Home I guess it's storing - _APP name, Y position (of top left), X position (of top left), height(of app), width(of app), 1=notminimised, profileName It's odd that many windows have negative numbers? notepad++ has Y position of -5 five here, i'd expect that to draw the left edge off the page slightly, yet it doesn't.

Looking at the setting for Code a height of 5286 is way too large for the fullHD screen it's displaying on. How did such a large number get saved? Does saving a different profile name on the 4K screens rewrite the profile for the laptop+fullHD screens? Is my issue related to the UWP/metro apps issue? Is it difficult for TANWindowMgr to get accurate measurements of UWP/metro app sizes? Would saving the screen resolutions and display scale to the profiles stored in settings.ini help?

Thank you

lukaspavelka commented 6 months ago

i have issue just right now with chrome , just one app was not restored where i need. but after i close chrome and start again it start working... strange but fix issue ;)