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

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

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

Post 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
Last edited by Leito on 29 Jan 2019 12:54, edited 1 time in total.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Should be fixed in next beta. Merci! :cup:

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

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

Post 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.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Anything in dlog (when you switch monitors)?

Code: Select all

dlog;

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

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

Post by Leito »

Empty as the void.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

That explains it. Blame it to the void.

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

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

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

Post 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:

Post Reply