TANWindowMgr icon indicating copy to clipboard operation
TANWindowMgr copied to clipboard

Many apps not restoring to the correct size and position

Open nickwelsh1 opened this issue 1 year ago • 1 comments

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=not_minimised, 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

nickwelsh1 avatar Oct 18 '23 01:10 nickwelsh1

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 ;)

lukaspavelka avatar May 07 '24 09:05 lukaspavelka