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

Missing inner resize of Hyper-V Machine connected via VMConnect.exe in enhanced mode #4336

Closed
Huseriato opened this issue Jun 16, 2020 · 14 comments
Assignees
Labels
Area-App Compat Issues revolving around application compatibility across PowerToys Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys

Comments

@Huseriato
Copy link

Environment

Windows build number: Version 10.0.18363.900
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

You need a Hyper-V Machine running Windows 10 (same build number as mentioned above) and connect via VMConnect in enhanced mode.

Expected behavior

FancyZones should resize the resolution of the guest operationg system (as it would to, when manually resizing the VMConnect window). May be there is an event missing, that must be send to the target window?

Actual behavior

When resizing the window via PowerToys Fancy Zones the guest is not resized properly (the VMConnect window itself will be resized). Manual resize of the VMConnect window resizes the gust operating system properly.

Video

Video_2020-06-16_151521

@enricogior enricogior added the Product-FancyZones Refers to the FancyZones PowerToy label Jun 16, 2020
@enricogior
Copy link
Contributor

Hi @Huseriato
thank you for reporting the issue, this may be something depending on the way the VMConnect window processes the resize event. We will have to investigate if FZ can somehow trigger the internal resize of the window.

@enricogior
Copy link
Contributor

@enricogior enricogior added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 2, 2020
@Huseriato
Copy link
Author

I will test this in monday and report you the current behaviour.

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Oct 2, 2020
@enricogior enricogior added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Team-Response An issue author responded so the team needs to follow up labels Oct 2, 2020
@ghost ghost added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Oct 7, 2020
@ghost
Copy link

ghost commented Oct 7, 2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

@Huseriato
Copy link
Author

This is also still happening. I tested both bugs reported by me in the same go.

@ghost ghost added Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Status-No recent activity no activity in the past 5 days when follow up's are needed labels Oct 10, 2020
@crutkas crutkas added the Area-App Compat Issues revolving around application compatibility across PowerToys label Oct 19, 2020
@crutkas
Copy link
Member

crutkas commented Oct 19, 2020

@enricogior, would like it if we could prioritize this for either .27 or .29. Going to assign to .29

@crutkas crutkas removed Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Oct 19, 2020
@enricogior
Copy link
Contributor

@crutkas
we may try to send a window resize event to the application to force it to redraw itself.

@enricogior enricogior self-assigned this Dec 30, 2020
@enricogior
Copy link
Contributor

Different issue, but the root cause may be the same #5673

@enricogior
Copy link
Contributor

I have tried several workarounds but none worked.
We might not be able to fix it. I also noticed that Windows Snap is also not working, it doesn't even move the window.

@crutkas
can you escalate this to the Hyper-V team?

@Huseriato
Copy link
Author

I'm wondering about this. GridMove can handle this correctly. It's a project that's not maintained for several years and has none of this resizing issues. May be you can find the magic there?

@enricogior
Copy link
Contributor

enricogior commented Jan 11, 2021

@Huseriato
did you get GridMove to work for you? I tried it and it works for regular windows, but it didn't move the VM for me.
I also tried to use the same API used by AutoHotkey to resize a window, and it resized the external frame but not the content.

EDIT: I got GridMove to resize the window but it has the same problem I just described:

image

@enricogior
Copy link
Contributor

@crutkas
this is not something we can fix, can you escalate it to the Hyper-V team?

@crutkas
Copy link
Member

crutkas commented Jan 11, 2021

@enricogior reached out to one person with you on the CC

@enricogior enricogior added the Resolution-External External issue, unrelated to PowerToys label Feb 6, 2021
@enricogior
Copy link
Contributor

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
Area-App Compat Issues revolving around application compatibility across PowerToys Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys
Projects
None yet
Development

No branches or pull requests

3 participants