Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FancyZones: Not working with Application Guard #616

Closed
jopose opened this issue Oct 31, 2019 · 9 comments
Closed

FancyZones: Not working with Application Guard #616

jopose opened this issue Oct 31, 2019 · 9 comments
Labels
Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys

Comments

@jopose
Copy link

jopose commented Oct 31, 2019

Environment

Windows build number: 1903 18362.10024
PowerToys version: 0.12.0.0
MS Edge version: 44.18362.10024.0
MS Edge(Chromium) version: 79.0.309.5 (Official build) dev (64-bit)

PowerToy module for which you are reporting the bug (if applicable):

FanzyZones

Steps to reproduce

Start Edge in Application guard(regular edge or edge chromium).
Try to Shift-drag

Expected behavior

Zones should show and the window should snap to zone.

Actual behavior

No zones is showing when trying to Shift-dragged.

@enricogior enricogior changed the title FnacyZones: Not working Application Guard FancyZones: Not working with Application Guard Oct 31, 2019
@enricogior enricogior added Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy labels Oct 31, 2019
@enricogior
Copy link
Contributor

@jopose
thank you!

@bzoz
Copy link
Contributor

bzoz commented Oct 31, 2019

So, it turns out those Application Guard windows are weird. First, they do not send EVENT_SYSTEM_MOVESTART nor EVENT_SYSTEM_MOVEEND messages. We depend on them to detect if a window is dragged by mouse. It sends other messages though.

And secondly - if moved with WinKey + arrow key, they bug out, and instead of being moved they end up cropped (note the right side of the window, the minimize/maximize button is missing):
image

While we might have some luck with moving the window in some other way to prevent cropping, there is little we can do if the window does not sends mouse move events.

@jopose
Copy link
Author

jopose commented Nov 1, 2019

@bzoz: WinKey + Arrow works for me.(Normal windows behaviour, that is. No FanzyZones)
Windows build number: 1903 18362.10024, Swedish.

@bzoz
Copy link
Contributor

bzoz commented Nov 1, 2019

There is a setting for overriding the Windows snap button, make sure it is enabled.

@jopose
Copy link
Author

jopose commented Nov 1, 2019

@bzoz: Ah, ok then the window gets cropped. But the window moves between the diffrent zones cropped.

@bzoz bzoz self-assigned this Nov 13, 2019
@crutkas crutkas added this to the 20.03 release milestone Jan 31, 2020
@enricogior enricogior removed this from the 20.03 release milestone Feb 27, 2020
@enricogior
Copy link
Contributor

@crutkas
I don't think this is fixable.
Each Application Guard window is hosted in the hvsirdpclient.exe process.
We don't receive any system notification from individual Application Guard Edge windows.
Also using Win+arrow, to snap those windows, result not only if cropped windows, but also in unresponsive windows.
Btw, Windows 10 Snap shows a very different rendering when snapping regular Edge windows vs Application Guard Edge windows, suggesting something custom is going on for Application Guard windows.

@crutkas crutkas added this to the v1.0 Release milestone Apr 13, 2020
@crutkas
Copy link
Member

crutkas commented Apr 13, 2020

Lets revisit later then based on this investigation.

Idea is to treat app guard windows like we do when we aren't elevated and there is an elevated window. "hey, this is an application that we can't interact with due to ..."

@enricogior
Copy link
Contributor

enricogior commented Aug 27, 2020

Tracking this issue in #6193 #1466

@enricogior enricogior removed this from the 2020 Stability Release milestone Feb 6, 2021
@enricogior enricogior added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Resolution-External External issue, unrelated to PowerToys and removed Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. labels Feb 6, 2021
@enricogior
Copy link
Contributor

Nothing that we can do about it. When an app runs in Application Guards, FancyZones doesn't have access to keyboard/mouse events.
Added to https://github.com/microsoft/PowerToys/wiki/Application-Compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys
Projects
None yet
Development

No branches or pull requests

4 participants