DS4Windows icon indicating copy to clipboard operation
DS4Windows copied to clipboard

DS4Windows not displaying on primary monitor

Open Kingfire4545 opened this issue 3 years ago • 3 comments
trafficstars

Describe the bug Ds4windows only displays on secondary monitor.

Expected behaviour Display on primary monitor

Screenshots and Logs the log.txt

Desktop (please complete the following information):

  • Controller Make and Model: Sony DS4 v.2 (CUH-ZCT2U)
  • OS: [e.g. Windows 10 Home Build 19044.2006]
  • DS4Windows Version 3.16

Additional context When the second monitor is not connected, it doesn't display at all.

Kingfire4545 avatar Oct 08 '22 21:10 Kingfire4545

DS4Windows saves the last known window coordinates when the program closes. It will try to restore the window to the last known position but there are no checks in place to try to keep the coordinates in currently visible bounds. Guess that will have to change.

Ryochan7 avatar Nov 13 '22 16:11 Ryochan7

Not sure this could have been addressed before the last DS4Windows release. DS4Windows now checks for active displays and grabs the visual resolution available from all active displays. That change was originally implemented to allow absolute mouse support to be isolated to a single monitor on a multi-monitor setup.

Ryochan7 avatar Nov 13 '22 17:11 Ryochan7

Implemented the change to check display bounds on startup in the code. Found out these checks could have been added without the use of WpfScreenHelper.

Ryochan7 avatar Nov 13 '22 17:11 Ryochan7