Page 3 of 5

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 18:39
by admin
I added more lines to debug log. Next beta, after moving XY to the other monitor, do dlog;.

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 18:55
by LittleBiG
admin wrote: ↑09 Dec 2020 18:39 I added more lines to debug log. Next beta, after moving XY to the other monitor, do dlog;.

Code: Select all

Debug Log
XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 18:54:43.045

XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 18:54:43.045
----------------------------------------------------------------------------------------------------

           -  2020-12-09 18:54:16.454  ---  DPI for monitor 2: 96, 96
   18.944  -  2020-12-09 18:54:35.398  -M-  WM_DPICHANGED: 6291552, 1699316, dpiX=96, dpiY=96
           -  2020-12-09 18:54:35.398  -M-  DPI for monitor 2: 96, 96

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:16
by admin
Perfect. I don't see anything to fix. :|

wait, you moved from 1 to 2?

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:26
by LittleBiG
admin wrote: ↑09 Dec 2020 19:16 Perfect. I don't see anything to fix. :|

wait, you moved from 1 to 2?
yes, from 1 to 2.

Edit: don't forget, that the present version is the worst. (I mean it is from the screenshots I sent, I am not sure of the version now) When I start on monitor 1 with the second attached, everything is out of place. I move that disaster from monitor 1 to 2.

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:36
by admin
It initially says:

Code: Select all

DPI for monitor 2: 96, 96
although you start on monitor 1???

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:38
by LittleBiG
Yes. Double-checked with Fresh

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:42
by LittleBiG
Starting on monitor 2 then move it to 1:

Code: Select all

Debug Log
XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:41:29.869

XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:41:29.869
----------------------------------------------------------------------------------------------------

           -  2020-12-09 19:41:10.374  ---  DPI for monitor 2: 96, 96
   14.343  -  2020-12-09 19:41:24.717  -M-  WM_DPICHANGED: 7864440, 1699316, dpiX=120, dpiY=120
        1  -  2020-12-09 19:41:24.718  -M-  DPI for monitor 1: 120, 120

Re: Lost config v21.30.0018

Posted: 09 Dec 2020 19:55
by LittleBiG
The next stunt: monitor 1 -> monitor 2 -> monitor 1

Code: Select all

Debug Log
XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:50:22.630

XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:50:22.630
----------------------------------------------------------------------------------------------------

           -  2020-12-09 19:49:07.025  ---  DPI for monitor 2: 96, 96
   19.712  -  2020-12-09 19:49:26.737  -M-  WM_DPICHANGED: 6291552, 1699316, dpiX=96, dpiY=96
           -  2020-12-09 19:49:26.738  -M-  DPI for monitor 2: 96, 96
    4.229  -  2020-12-09 19:49:30.967  -M-  WM_DPICHANGED: 7864440, 1699316, dpiX=120, dpiY=120
           -  2020-12-09 19:49:30.967  -M-  DPI for monitor 1: 120, 120
The result is that many things recover by this. Configuration dialog and other dialogs become ok. Toolbar is not ok, but after redraw (customize toolbar.. then a simple OK button) the toolbar labels recover too.

When I start XY next time after this, it will be a lot bigger (probably because it thinks that it was started on 96dpi, however, was not.

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 09:49
by admin
LittleBiG wrote: ↑09 Dec 2020 19:55 The next stunt: monitor 1 -> monitor 2 -> monitor 1

Code: Select all

Debug Log
XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:50:22.630

XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-09 19:50:22.630
----------------------------------------------------------------------------------------------------

           -  2020-12-09 19:49:07.025  ---  DPI for monitor 2: 96, 96
   19.712  -  2020-12-09 19:49:26.737  -M-  WM_DPICHANGED: 6291552, 1699316, dpiX=96, dpiY=96
           -  2020-12-09 19:49:26.738  -M-  DPI for monitor 2: 96, 96
    4.229  -  2020-12-09 19:49:30.967  -M-  WM_DPICHANGED: 7864440, 1699316, dpiX=120, dpiY=120
           -  2020-12-09 19:49:30.967  -M-  DPI for monitor 1: 120, 120
The result is that many things recover by this. Configuration dialog and other dialogs become ok. Toolbar is not ok, but after redraw (customize toolbar.. then a simple OK button) the toolbar labels recover too.

When I start XY next time after this, it will be a lot bigger (probably because it thinks that it was started on 96dpi, however, was not.
You start on monitor 1 but the first line says:

Code: Select all

2020-12-09 19:49:07.025  ---  DPI for monitor 2: 96, 96
I thinks it's on monitor 2 and it retrieves the DPI for monitor 2. That means everything should look wrong already on startup! Is that so? When you do screen; right after startup, does it still think it's on monitor 2?

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 10:26
by LittleBiG
admin wrote: ↑10 Dec 2020 09:49 I thinks it's on monitor 2 and it retrieves the DPI for monitor 2. That means everything should look wrong already on startup! Is that so? When you do screen; right after startup, does it still think it's on monitor 2?
No, screen; knows the current monitor correctly:

Code: Select all

Screen
XYplorer 21.30.0026  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198

Virtual Screen: (0, 0) - (3200, 1080)

Screen.Width (screenW) = 1536 (1920)
Screen.Height (screenH) = 864 (1080)
Current Monitor: 1 (Primary)
Current Work Area: (0, 0) - (1920, 1030)

Number of Monitors: 2
Monitor 1 Area: (0, 0) - (1920, 1080) = 1920x1080
Monitor 1 Area Work: (0, 0) - (1920, 1030)
Monitor 1 DPI: 120 (125%)
Monitor 2 Area: (1920, 0) - (3200, 1024) = 1280x1024
Monitor 2 Area Work: (1920, 0) - (3200, 984)
Monitor 2 DPI: 96 (100%)

Startup Work Area: (0, 0) - (1920, 1030)
GetCursorPos = 1329, 73
XY Main Window: (-9, -9) - (1929, 1039) = 1938x1048

Screen DPI: 96 (100%)   twX: 15 (12)   Stretch: 1   sLF: 1   Toolbar Zoom: 1 (1;1)
Screen Color Depth: 32
DPI awareness: Per monitor
Auto Scaling: Yes, Yes

UseDPIAwareIconSizes: No, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=16, Large=32
Icon Size Recommended: Small=20, Large=40
Edit: however the screen DPI shouldn't be 120?

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 11:13
by admin
There is something wrong here, it just does not fit together:

Code: Select all

Current Monitor: 1 (Primary)
...
Monitor 1 DPI: 120 (125%)
...
Screen DPI: 96 (100%) 
Now, what is the true DPI of monitor 1?

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 11:21
by LittleBiG
admin wrote: ↑10 Dec 2020 11:13 Now, what is the true DPI of monitor 1?
This one: Monitor 1 DPI: 120 (125%)

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 13:16
by admin
Interesting. I smell blood. :twisted: The next beta's debug log will shed some light...

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 13:58
by LittleBiG
admin wrote: ↑10 Dec 2020 13:16 Interesting. I smell blood. :twisted: The next beta's debug log will shed some light...
Now, XY started correctly on monitor 1, I didn't experience anything out of place. I moved the window this way: monitor 1 - monitor 2 - monitor 1

Code: Select all

Debug Log
XYplorer 21.30.0027  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-10 13:44:28.239

XYplorer 21.30.0027  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-10 13:44:28.239
----------------------------------------------------------------------------------------------------

        0  -  2020-12-10 13:43:49.613  ---  rWindow: -3, -1191, 1130, -542
        0  -  2020-12-10 13:43:49.613  ---  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:43:49.613  ---  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:43:49.613  ---  dArea     1: 0
        0  -  2020-12-10 13:43:49.613  ---  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:43:49.613  ---  rOverlap  2: 0, 0, 0, 0
        0  -  2020-12-10 13:43:49.613  ---  dArea     2: 0
        0  -  2020-12-10 13:43:49.613  ---  DPI for monitor 1: 120, 120
   24.219  -  2020-12-10 13:44:13.832  -M-  WM_DPICHANGED: 6291552, 1699316, dpiX=96, dpiY=96
        0  -  2020-12-10 13:44:13.832  -M-  rWindow: 1581, 192, 2860, 1015
        0  -  2020-12-10 13:44:13.832  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:44:13.832  -M-  rOverlap  1: 1581, 192, 1920, 1015
        0  -  2020-12-10 13:44:13.832  -M-  dArea     1: 278997
        0  -  2020-12-10 13:44:13.832  -M-  getMonitor = 0
        0  -  2020-12-10 13:44:13.832  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:44:13.832  -M-  rOverlap  2: 1920, 192, 2860, 1015
        0  -  2020-12-10 13:44:13.832  -M-  dArea     2: 773620
        0  -  2020-12-10 13:44:13.832  -M-  getMonitor = 1
        0  -  2020-12-10 13:44:13.832  -M-  DPI for monitor 2: 96, 96
      908  -  2020-12-10 13:44:14.740  -M-  rWindow: 1949, 112, 3228, 935
        0  -  2020-12-10 13:44:14.740  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:44:14.740  -M-  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:44:14.740  -M-  dArea     1: 0
        0  -  2020-12-10 13:44:14.740  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:44:14.740  -M-  rOverlap  2: 1949, 112, 3200, 935
        0  -  2020-12-10 13:44:14.740  -M-  dArea     2: 1029573
        0  -  2020-12-10 13:44:14.740  -M-  getMonitor = 1
      996  -  2020-12-10 13:44:15.736  -M-  WM_DPICHANGED: 7864440, 1699316, dpiX=120, dpiY=120
        0  -  2020-12-10 13:44:15.736  -M-  rWindow: 1262, 228, 2541, 1051
        0  -  2020-12-10 13:44:15.736  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:44:15.736  -M-  rOverlap  1: 1262, 228, 1920, 1051
        0  -  2020-12-10 13:44:15.736  -M-  dArea     1: 541534
        0  -  2020-12-10 13:44:15.736  -M-  getMonitor = 0
        0  -  2020-12-10 13:44:15.736  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:44:15.736  -M-  rOverlap  2: 1920, 228, 2541, 1024
        0  -  2020-12-10 13:44:15.736  -M-  dArea     2: 494316
        0  -  2020-12-10 13:44:15.736  -M-  DPI for monitor 1: 120, 120
      941  -  2020-12-10 13:44:16.677  -M-  rWindow: 198, 90, 1477, 913
        0  -  2020-12-10 13:44:16.677  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:44:16.677  -M-  rOverlap  1: 198, 90, 1477, 913
        0  -  2020-12-10 13:44:16.677  -M-  dArea     1: 1052617
        0  -  2020-12-10 13:44:16.677  -M-  getMonitor = 0
        0  -  2020-12-10 13:44:16.677  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:44:16.677  -M-  rOverlap  2: 0, 0, 0, 0
        0  -  2020-12-10 13:44:16.677  -M-  dArea     2: 0
Then I tried out if the Configuration window is ok when XY is moved to the second monitor. No, it isn't. All controls are rather on the upper side. Then I tried to start XY on the second monitor, checked the config window, then moved to monitor 1, checked the config window there too, then end up on monitor 2. See the dlog of this action below. Starting XY on the secondary monitor, everything is out of place until I move it to the monitor 1. It seems like on the secondary monitor the DPI wouldn't be refreshed at all.

Code: Select all

Debug Log
XYplorer 21.30.0027  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-10 13:47:39.443

XYplorer 21.30.0027  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198  -  2020-12-10 13:47:39.443
----------------------------------------------------------------------------------------------------

        0  -  2020-12-10 13:46:32.280  ---  rWindow: -3, -1191, 1130, -542
        0  -  2020-12-10 13:46:32.280  ---  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:46:32.280  ---  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:46:32.280  ---  dArea     1: 0
        0  -  2020-12-10 13:46:32.280  ---  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:46:32.280  ---  rOverlap  2: 0, 0, 0, 0
        0  -  2020-12-10 13:46:32.280  ---  dArea     2: 0
        0  -  2020-12-10 13:46:32.280  ---  DPI for monitor 1: 120, 120
   12.814  -  2020-12-10 13:46:45.094  -M-  rWindow: 1920, 98, 3199, 921
        0  -  2020-12-10 13:46:45.094  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:46:45.094  -M-  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:46:45.094  -M-  dArea     1: 0
        0  -  2020-12-10 13:46:45.094  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:46:45.094  -M-  rOverlap  2: 1920, 98, 3199, 921
        0  -  2020-12-10 13:46:45.094  -M-  dArea     2: 1052617
        0  -  2020-12-10 13:46:45.094  -M-  getMonitor = 1
   12.324  -  2020-12-10 13:46:57.418  -M-  WM_DPICHANGED: 7864440, 1699316, dpiX=120, dpiY=120
        0  -  2020-12-10 13:46:57.418  -M-  rWindow: 1231, 167, 2510, 990
        0  -  2020-12-10 13:46:57.418  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:46:57.418  -M-  rOverlap  1: 1231, 167, 1920, 990
        0  -  2020-12-10 13:46:57.418  -M-  dArea     1: 567047
        0  -  2020-12-10 13:46:57.418  -M-  getMonitor = 0
        0  -  2020-12-10 13:46:57.418  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:46:57.418  -M-  rOverlap  2: 1920, 167, 2510, 990
        0  -  2020-12-10 13:46:57.418  -M-  dArea     2: 485570
        0  -  2020-12-10 13:46:57.418  -M-  DPI for monitor 1: 120, 120
    1.042  -  2020-12-10 13:46:58.460  -M-  rWindow: 300, 80, 1579, 903
        0  -  2020-12-10 13:46:58.460  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:46:58.460  -M-  rOverlap  1: 300, 80, 1579, 903
        0  -  2020-12-10 13:46:58.460  -M-  dArea     1: 1052617
        0  -  2020-12-10 13:46:58.460  -M-  getMonitor = 0
        0  -  2020-12-10 13:46:58.460  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:46:58.460  -M-  rOverlap  2: 0, 0, 0, 0
        0  -  2020-12-10 13:46:58.460  -M-  dArea     2: 0
    3.068  -  2020-12-10 13:47:01.528  -M-  rWindow: 300, 80, 1579, 903
        0  -  2020-12-10 13:47:01.528  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:47:01.528  -M-  rOverlap  1: 300, 80, 1579, 903
        0  -  2020-12-10 13:47:01.528  -M-  dArea     1: 1052617
        0  -  2020-12-10 13:47:01.528  -M-  getMonitor = 0
        0  -  2020-12-10 13:47:01.528  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:47:01.528  -M-  rOverlap  2: 0, 0, 0, 0
        0  -  2020-12-10 13:47:01.528  -M-  dArea     2: 0
   11.518  -  2020-12-10 13:47:13.046  -M-  WM_DPICHANGED: 6291552, 1699316, dpiX=96, dpiY=96
        0  -  2020-12-10 13:47:13.046  -M-  rWindow: 1297, -6, 2576, 817
        0  -  2020-12-10 13:47:13.046  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:47:13.046  -M-  rOverlap  1: 1297, 0, 1920, 817
        0  -  2020-12-10 13:47:13.046  -M-  dArea     1: 508991
        0  -  2020-12-10 13:47:13.046  -M-  getMonitor = 0
        0  -  2020-12-10 13:47:13.046  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:47:13.046  -M-  rOverlap  2: 1920, 0, 2576, 817
        0  -  2020-12-10 13:47:13.046  -M-  dArea     2: 535952
        0  -  2020-12-10 13:47:13.046  -M-  getMonitor = 1
        0  -  2020-12-10 13:47:13.046  -M-  DPI for monitor 2: 96, 96
    1.374  -  2020-12-10 13:47:14.420  -M-  rWindow: 1920, 73, 3199, 896
        0  -  2020-12-10 13:47:14.420  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:47:14.420  -M-  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:47:14.420  -M-  dArea     1: 0
        0  -  2020-12-10 13:47:14.420  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:47:14.420  -M-  rOverlap  2: 1920, 73, 3199, 896
        0  -  2020-12-10 13:47:14.420  -M-  dArea     2: 1052617
        0  -  2020-12-10 13:47:14.420  -M-  getMonitor = 1
    2.576  -  2020-12-10 13:47:16.996  -M-  rWindow: 1920, 73, 3199, 896
        0  -  2020-12-10 13:47:16.996  -M-  rcMonitor 1: 0, 0, 1920, 1080
        0  -  2020-12-10 13:47:16.996  -M-  rOverlap  1: 0, 0, 0, 0
        0  -  2020-12-10 13:47:16.996  -M-  dArea     1: 0
        0  -  2020-12-10 13:47:16.996  -M-  rcMonitor 2: 1920, 0, 3200, 1024
        0  -  2020-12-10 13:47:16.996  -M-  rOverlap  2: 1920, 73, 3199, 896
        0  -  2020-12-10 13:47:16.996  -M-  dArea     2: 1052617
        0  -  2020-12-10 13:47:16.996  -M-  getMonitor = 1
Edit: ah, the same error on monitor 2 as it was on monitor 1 before. See the screen; when XY is started on 2. The Screen DPI is wrong again:

Code: Select all

Screen
XYplorer 21.30.0027  -  Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.1198

Virtual Screen: (0, 0) - (3200, 1080)

Screen.Width (screenW) = 1920 (1920)
Screen.Height (screenH) = 1080 (1080)
Current Monitor: 2 (Secondary)
Current Work Area: (1920, 0) - (3200, 984)

Number of Monitors: 2
Monitor 1 Area: (0, 0) - (1920, 1080) = 1920x1080
Monitor 1 Area Work: (0, 0) - (1920, 1030)
Monitor 1 DPI: 120 (125%)
Monitor 2 Area: (1920, 0) - (3200, 1024) = 1280x1024
Monitor 2 Area Work: (1920, 0) - (3200, 984)
Monitor 2 DPI: 96 (100%)

Startup Work Area: (0, 0) - (1920, 1030)
GetCursorPos = 2600, 190
XY Main Window: (1936, 92) - (3215, 915) = 1279x823

Screen DPI: 120 (125%)   twX: 12 (12)   Stretch: 1   sLF: 1,25   Toolbar Zoom: 1 (1;1)
Screen Color Depth: 32
DPI awareness: Per monitor
Auto Scaling: Yes, Yes

UseDPIAwareIconSizes: Yes, Yes
Icon Size: Small=16, Large=32
Icon Size Controls: Small=20, Large=40
Icon Size Recommended: Small=20, Large=40

Re: Lost config v21.30.0018

Posted: 10 Dec 2020 14:09
by admin
OK, an important part of the issue is that I'm asking the main XY window on which monitor it is, at a moment when the window does not yet exist! The correct answer would be "Nirvana" but that cannot be expressed as a monitor number.

I have to think... :maf: :cup: