Powertoys: MSIX: PowerRename dialog is not on the foreground

Created on 2 Jan 2020  路  8Comments  路  Source: microsoft/PowerToys

When PT is installed using MSIX, the PowerRename dialog doesn't show up on the foreground

Issue-Bug Product-PowerRename Resolution-Fix-Committed Tracking-External

All 8 comments

this sounds less than ideal. So if my desktop has 40 windows open, Rename could be hidden under a ton of existing windows versus launching on top?

FWIW, I've seen this bug in my project that uses a similar IExplorerCommand-launching-UI pattern. If anyone comes up with a solution, I'd be interesting in hearing about it. Thanks!

one thing i just noticed, if the context menu happens outside the primary monitor, it actually launches on the foreground, only on the primary monitor when it is executed it doesn't work correclty

@crutkas
we checked @wjk's extension and it does have the same problem. The interesting part is that he uses a different mechanism (COM SurrogateServer) and it's written in C#.
So it's not just a problem with the way we register the extension, or the fact that we use C++, it seems a problem that affects all type of scenarios.

one thing i just noticed, if the context menu happens outside the primary monitor, it actually launches on the foreground

It only appears to be on the foreground but in reality it's not and it doesn't have the focus.
You can verify it in two ways:

  • the dialog title bar it's still not active and if you type it doesn't receive the key strokes
  • if you have an Explorer window that span the two monitors, the PowerRename dialog will open behind it

ImageResizer has the same issue on the MSIX build. If the context menu is launched on the primary monitor it appears right behind the the Explorer window and it isn't in focus (title bar is greyed out).

@arjunbalgovind as ImageResizer is a new addition for 0.16, lets create a new issue and xref the two. I'll do that. This is for 0.15 scoped.

Marked as external, since it turned out to be a Windows bug.
Working on a workaround to be used until the Windows bug is fixed.

Was this page helpful?
0 / 5 - 0 ratings