Incorrect monitor handle returned by OW

Issue Description:
While R6 is running let’s say on monitor A, OW returns monitor B (until the game is minimized and maximized again and it fixes itself).
We use this feature to know on which monitor the app is running so we can create the 2nd monitor window on a different monitor than the game itself.

Related feature

Steps to reproduce:
high (because it makes our game window appear behind the game)

I am not sure if there are easier steps to repro this so i will tell you my setup.

  1. have a secondary monitor connected to a laptop and from the Project Menu (win + p) select second screen only.
  2. restart the laptop and wait. not the laptop should by default run on second monitor in windows with it’s own monitor turned off.
  3. Go back to the project menu (win +p) and select (extended)
  4. now the primary monitor should be the laptop one (if not set it to primary)
  5. To replicate this bug make sure windows identifies the external monitor as 1 and the internal one as 2 and 2 is primary.
  6. the game will by default for some reason run on monitor 1 and not on primary … thats just how r6 works i guess?) but the gameInfo will return the other monitor’s handle for some reason making us show our secondary monitor window behind the game and it’s affecting many users

My assumption: replicating the cumbersome steps above might not be necessary and selecting monitor 2 as primary might be enough (I do not know since i work on a laptop).

For us this is bug has a high impact because it completely ruins a feature for us, a window with a really really high completion rate adslot. We might look for ways around this for the time being but this bug really needs to get fixed otherwise the monitor handle feature itself is not really usable if it does not return proper information

Sadly until Christmas I will not be home and i do not have a secondary monitor so no useful logs but if it help i anyway i will ask someone to repro the steps for me.

@avner-solomon Thanks. We will check it and let you know ASAP.

@avner-solomon I have some issues to reproduce this bug:

Everything is ok until step 5 - The laptop defined as primary and attached to an external monitor in “extended” mode.

But on this configuration, windows always identifies the laptop as “1”. While in step 5, you mention “make sure windows identifies the external monitor as 1”.

BTW, from my tests, the game is always displaying on the primary screen, and the gameInfo identifies the monitors correctly.

I have an ASUS ROG Strix (can look for exact model if you want too).

Did you reboot after “Second screen only” ? Can you check after that reboot (while in second screen only) as what number the external monitor is identified as by windows? Normally if your laptop is still connected to that monitor while in boot sequence it should become number 1 (you can also close the lid of the laptop). After you are sure it is 1, open lid and enable extended mode. It’s a little weird if they suddenly switch numbers (external to become 2 from 1).

If it helps, my external is on HDMI. tho it should not matter.

Also another question? (i did not try nor can i try now) What happens if you change in R6 on which monitor the game to run and then stop game and relaunch it? Does OW detect it correctly?

Hi @avner-solomon,

It looks like your ticket was “lost” in the deep web… sorry for that.

Since than, there were many changes, like we added the monitor handle also to
overwolf.windows.getCurrentWindow() and to getMonitorsList().

Have you managed to find a workaround? How did you solve it? Is it still relevant? (if so, what is the priority for you from your side).

If it is still reproducible, please give me the exact steps.

Let me know, so I will be able to close the ticket or not.

I am closing the ticket due to a lack of response.
If it’s still relevant or has anything to add - please mention me here, and I’ll re-open it.

Thanks.