Window function to restore and bring to front

You can check it on v0.158 that available on the developer’s channel.
Please update me if everything is working as expected.

Thanks

@eransharv for me it’s not fixed yet: i’m on 0.158 Developers and the window also if called bringToFront() doesnt come up in front of other windows.

Maybe i’m misunderstanding how the function should work…

EDIT: thinking about the order i open this windows (as they are resident and always transparent, activated with an event bus message) i’ve tried to open them AFTER all windows and it seems the positioning issue has been fixed… don’t know if it’s a causality…

Want to share the same experience as: dowmeister.

When using this function the window is not brought to the front but lingers behind. it is also invisible on the task bar until you minimize other windows or use Alt+Tab to find it. Testing this in version 0.158

@dowmeister @aetherhub can you please tell me the exact steps to reproduce?

I have provided documentation on slack direct message.

1 Like

Is this bug fix on the roadmap for a future release?

My example is quite simple: open a window among others in the stack, call bringToFront from that window, the window remains behind others

@dowmeister @bmills95 @aetherhub

The bug should be fixed now - hopefully… in OW client version 0.159.
You can find it on the developer’s channel.

Please let me know if that works for you.

Thanks.

I just tested the fix on the dev channel using the console and it appears to be working correctly for me! So I’ll try using it in the actual app somewhere but this is progress for me for sure.

edit: Ok it works in the console but not when I call the function from app. Any reason why that might be?

@bmills95 I can’t think of any reason for that. Can you tell me how you called it from the console and how from the app? Did you bring to front of the same window? Did the call use the same params? Etc.
If that is the situation, I need to know exactly how to reproduce this issue with your app.
And also, let’s wait for the other partners to verify if it’s working for them.

Experiencing the same behaviour here. It works from outside the game window console, but not from the app or from the in-game window console (when the game is focused).

@aetherhub can you explain in more detail how to reproduce it.

Restore a desktop window while game is open. Try to bringToFront, so it is in front of the game and other windows.
It sometimes seems to work only once per app session. All further attempts leaves it behind the game. Other times it doesn’t work the first time either.
Using bringToFront with or without grabFocus while game is in windowed mode or while in fullscreen mode the window mostly stays behind other windows. I don’t see any specific pattern.

1 Like

I am also getting this issue, specifically with Hearthstone.

Update: we will reopen this ticket and the bug related to it and examine your feedback. I will keep you updated here.

Thanks for your patience.

@ge0r9e @aetherhub @bmills95 @dowmeister @heartharena

We released a fix to the issue on the developers channel: 0.159.0.24.

Can you please update your OW client, test, and confirm if it’s working for you or not?

Notes:

  • If you set grabFocus:true and your game is in full-screen mode, the game will be minimized and the window will move to the foreground.
  • If you set grabFocus:false and your game is in full-screen mode, the game will NOT be minimized and the window will NOT move to the foreground.

In the MTGA Assistant extension, it now works as expected!

1 Like

I also just tested this fix and it appears to be working correctly now.

Is there an ETA on this release?

gg to everyone :slight_smile:

1 Like

I added notes about the expected behaviour under the bringToFront() docs:

Regarding the release ETA - I will have to check it and get back to you.

1 Like

the ETA is “early next week”.

1 Like