kangyu-california / PersistentWindows

fork of http://www.ninjacrab.com/persistent-windows/ with windows 10 update
GNU General Public License v3.0
1.41k stars 50 forks source link

(CTRL + Minimize) Restored windows always have wrong scaling on dual monitor #361

Open AgentKazy opened 3 days ago

AgentKazy commented 3 days ago

Hi, when restoring windows from CTRL + Minimize, (all not all windows, but those that are affected happens every time) the restored windows have the wrong display scaling (and a border sometimes bleeds into the main window, for example in white as shown on the "After restore" screenshot below).

I'm guessing this is due to having two monitors with different resolutions and display scales. Screenshots of the display settings for both monitors and the issue itself below.

The current workaround is dragging the second monitor's window out of fullscreen and back into fullscreen to render at the correct display scale.

Using: Windows 10 Pro 22H2 build 19045.4412 | PersistentWindows 5.59.9025.28524

Display 1 Display 1

Display 2 Display 2

Before minimizing 1 Before

Minimized 2 Minimize

After restore 3 After

kangyu-california commented 3 days ago

The font zoom issue is duplicate of #349, which I could not reproduce. PW is only responsible for restoring window size/location, the content drawing and font rendering is solely controlled by the underlying app itself instead of PW.

The bleeding bright line adjacent to screen border can be randomly reproduced for maximized task manager window on my setup. The issue is likely to be caused by inconsistent rendering of maximized window by Windows OS, perhaps due to rounding error in mixed display scales. Again there is nothing can be done in PW to address this.