Page 1 of 1

[SOLVED] Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 10:08
by Leito
Configuration
  • Two monitors: 1920x1080
  • Main monitor = monitor #1
  • Monitor #2 to the left of monitor #1
Test #1
  1. Start XY on monitor #1
  2. Display HoverBox
    ⇒ OK :tup:
    Image
  3. Run screen;

    Code: Select all

    Screen
    
    Virtual Screen: (-1920, 0) - (3840, 1080)
    
    Screen.Width (screenW) = 1920(1920)
    Screen.Height (screenH) = 1080(1080)
    Current Monitor: 1 (Primary)
    Current Work Area: (0, 0) - (1920, 1040)
    
    Number of Monitors: 2
    Monitor 1 Area:      (0, 0) - (1920, 1080)
    Monitor 1 Area Work: (0, 0) - (1920, 1040)
    Monitor 2 Area:      (-1920, 0) - (0, 1080)
    Monitor 2 Area Work: (-1920, 0) - (0, 1080)
    
    Startup Work Area: (0, 0) - (1920, 1040)
    GetCursorPos = 193, 136
    Main Window: (-8, -8) - (1928, 1048)
    
    Screen DPI: 96 (100%), twx: 15, stretch: 1
    Screen Color Depth: 32
    DPI awareness: Per monitor
    
  4. Move XYplorer to monitor #2 using Win+Shift+Left (the bug doesn't happen when moving XY with the mouse)
    ⇒ KO :( : the HoverBox is displayed on monitor #1
    Image
  5. Run screen;

    Code: Select all

    Screen
    
    Virtual Screen: (-1920, 0) - (3840, 1080)
    
    Screen.Width (screenW) = 1920(1920)
    Screen.Height (screenH) = 1080(1080)
    Current Monitor: 2 (Secondary)
    Current Work Area: (-1920, 0) - (0, 1080)
    
    Number of Monitors: 2
    Monitor 1 Area:      (0, 0) - (1920, 1080)
    Monitor 1 Area Work: (0, 0) - (1920, 1040)
    Monitor 2 Area:      (-1920, 0) - (0, 1080)
    Monitor 2 Area Work: (-1920, 0) - (0, 1080)
    
    Startup Work Area: (0, 0) - (1920, 1040)
    GetCursorPos = -1723, 135
    Main Window: (-1928, -8) - (8, 1088)
    
    Screen DPI: 96 (100%), twx: 15, stretch: 1
    Screen Color Depth: 32
    DPI awareness: Per monitor
    
  6. Display HoverBox
    ⇒ OK :tup: : running screen; fixes the issue
    Image
Test #2
  1. Start XY on monitor #2
  2. Display HoverBox
    ⇒ OK :tup:
  3. Run screen;

    Code: Select all

    Screen
    
    Virtual Screen: (-1920, 0) - (3840, 1080)
    
    Screen.Width (screenW) = 1920(1920)
    Screen.Height (screenH) = 1080(1080)
    Current Monitor: 2 (Secondary)
    Current Work Area: (-1920, 0) - (0, 1080)
    
    Number of Monitors: 2
    Monitor 1 Area:      (0, 0) - (1920, 1080)
    Monitor 1 Area Work: (0, 0) - (1920, 1040)
    Monitor 2 Area:      (-1920, 0) - (0, 1080)
    Monitor 2 Area Work: (-1920, 0) - (0, 1080)
    
    Startup Work Area: (0, 0) - (1920, 1040)
    GetCursorPos = -1096, 432
    Main Window: (-1928, -8) - (8, 1088)
    
    Screen DPI: 96 (100%), twx: 15, stretch: 1
    Screen Color Depth: 32
    DPI awareness: Per monitor
    
  4. Move XYplorer to monitor #1 using Win+Shift+Right (the bug doesn't happen when moving XY with the mouse)
    ⇒ KO :( : the HoverBox is displayed on the left of the cursor, thus sometimes on the middle of both screens
    Image
  5. Run screen;

    Code: Select all

    Screen
    
    Virtual Screen: (-1920, 0) - (3840, 1080)
    
    Screen.Width (screenW) = 1920(1920)
    Screen.Height (screenH) = 1080(1080)
    Current Monitor: 1 (Primary)
    Current Work Area: (0, 0) - (1920, 1040)
    
    Number of Monitors: 2
    Monitor 1 Area:      (0, 0) - (1920, 1080)
    Monitor 1 Area Work: (0, 0) - (1920, 1040)
    Monitor 2 Area:      (-1920, 0) - (0, 1080)
    Monitor 2 Area Work: (-1920, 0) - (0, 1080)
    
    Startup Work Area: (0, 0) - (1920, 1040)
    GetCursorPos = 201, 136
    Main Window: (-8, -8) - (1928, 1048)
    
    Screen DPI: 96 (100%), twx: 15, stretch: 1
    Screen Color Depth: 32
    DPI awareness: Per monitor
    
  6. Display HoverBox
    ⇒ OK :tup: : running screen; fixes the issue

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 13:39
by admin
Should be fixed in next beta. Merci! :cup:

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 16:11
by Leito

Code: Select all

v19.50.0248 - 2019-01-28 14:33
    ! Hover Box: Did not catch switching monitors while running. Fixed.
Unfortunately, no change on my side.

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 16:20
by admin
Anything in dlog (when you switch monitors)?

Code: Select all

dlog;

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 17:08
by Leito
Empty as the void.

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 28 Jan 2019 17:21
by admin
That explains it. Blame it to the void.

I'll take a different shot next beta...

Re: Multi-monitor and HoverBox: wrong position after switching screen with KB shortcut

Posted: 29 Jan 2019 12:54
by Leito

Code: Select all

v19.50.0249 - 2019-01-28 21:02
    ! Hover Box: Did not catch switching monitors while running. Fix #2.
All good now! Thanks Don. :beer: