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: window sizing not working properly on Citrix Workspace #7135

Closed
felipecrs opened this issue Oct 6, 2020 · 19 comments
Closed

FancyZones: window sizing not working properly on Citrix Workspace #7135

felipecrs opened this issue Oct 6, 2020 · 19 comments
Labels
Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys

Comments

@felipecrs
Copy link

felipecrs commented Oct 6, 2020

ℹ Computer information

  • PowerToys version: v0.23.0
  • PowerToy Utility: FancyZones
  • Running PowerToys as Admin: Yes, always
  • Windows build number: 20H2 build 19042.508

📝 Provide detailed reproduction steps (if any)

This might be a bit difficult since you need to have access to a Citrix workspace to reproduce.

  1. Assign a single zone to match the whole screen, disable the blank space between the zones:
    image
  2. Open a remote session with any desktop in Citrix Workspace.
  3. Drag this window to the zone created in step 1.

✔️ Expected result

Something like this (I resized manually):
image

❌ Actual result

The window does not fill the whole screen. Look at both right and left sides of it.
image

@felipecrs felipecrs added the Issue-Bug Something isn't working label Oct 6, 2020
@ghost ghost added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Oct 6, 2020
@felipecrs felipecrs changed the title FancyZones: window sizing not working properly on Ctrix FancyZones: window sizing not working properly on Citrix Workspace Oct 6, 2020
@enricogior
Copy link
Contributor

@felipecrs
do you have multiple monitors?

@enricogior enricogior added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-FancyZones Refers to the FancyZones PowerToy and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Oct 6, 2020
@felipecrs
Copy link
Author

felipecrs commented Oct 6, 2020

@enricogior yes, 3. The same issue happens in every monitor (I have a single zone assigned to each of them).

@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 6, 2020
@enricogior
Copy link
Contributor

@felipecrs
if FZ detects that the application is not DPI-aware it reduces the size of the application window because of a Windows but that would cause the application to expand outside of the monitor, see #4354

@felipecrs
Copy link
Author

Is there any other application that you would like me to test to see if this behavior also happens?

@felipecrs
Copy link
Author

Okay, just tested with Notepad++ and the behavior is the same.

image

@enricogior enricogior added FancyZones-App Compat Resolution-External External issue, unrelated to PowerToys and 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 6, 2020
@htcfreek
Copy link
Collaborator

htcfreek commented Oct 6, 2020

@felipecrs
Not sure if this helps: Citrix Workspace App has a HighDPI setting. Maybe it helps to configure this setting to "on". You can find the setting in the advanced settings menu of the Workspace App.

⚠️ Set this HighDPI setting to "system" could cause visibility issues on multi monitor setups when the different monitors have different dpi settings.

@felipecrs
Copy link
Author

felipecrs commented Oct 6, 2020

@htcfreek Thank you so much, it worked like a charm! This is what I did:

image


Nonetheless, I believe the issue should remain open since Citrix Workspace is not the only application affected by it.

@htcfreek
Copy link
Collaborator

htcfreek commented Oct 6, 2020

@felipecrs, great news.
What was the setting before? "System default" or "off"?

(I am interested in this information because maybe the system setting didn't worked at all.)

@htcfreek
Copy link
Collaborator

htcfreek commented Oct 6, 2020

@crutkas, @enricogior
Do we have a wiki article with tips and tricks for FanzyZones where we can write the solution for this issue?

For the solution please see these two comments:

@felipecrs
Copy link
Author

felipecrs commented Oct 6, 2020

What was the setting before? "System default" or "off"?

The third option in the screenshot. "Let the operating system scale the resolution"

@htcfreek
Copy link
Collaborator

htcfreek commented Oct 6, 2020

What was the setting before? "System default" or "off"?

The third option in the screenshot. "Let the operating system scale the resolution"

Like I thought. This third setting is really problematic and doesn't work correctly.

@felipecrs
Copy link
Author

Maybe this is because I have this setup:

Monitor 1: 150% scale
Monitor 2: 100% scale (primary)
Monitor 3: 125% scale

Perhaps, Citrix does not enable HiDPI because my primary monitor does not have a custom scale.

@htcfreek
Copy link
Collaborator

htcfreek commented Oct 6, 2020

Maybe this is because I have this setup:

Monitor 1: 150% scale
Monitor 2: 100% scale (primary)
Monitor 3: 125% scale

Perhaps, Citrix does not enable HiDPI because my primary monitor does not have a custom scale.

Don't know. But that could be.

The only thing I know is that I have generally changed the setting in our company. We had problems on some computers when it was set to "system" (third option): The UI of the Citrix apps was flickering and not accessible.

@enricogior
Copy link
Contributor

https://github.com/microsoft/PowerToys/wiki/Application-Compatibility

@crutkas crutkas closed this as completed Oct 8, 2020
@felipecrs
Copy link
Author

felipecrs commented Oct 8, 2020

@crutkas is this issue being tracked somewhere else? I don't understand why it was closed. As mentioned, Citrix Workspace is not the only application affected by it. I can rename the issue to point something more generic if that's the problem.

@htcfreek
Copy link
Collaborator

htcfreek commented Oct 8, 2020

@crutkas is this issue being tracked somewhere else? I don't understand why it was closed. As mentioned, Citrix Workspace is not the only application affected by it. I can rename the issue to point something more generic if that's the problem.

For Citrix we have a workaround. And generally as @enricogior wrote this is not a FZ bug. It's a problem of the external application which is not DPI aware. So we wouldn't have any benefit of keeping this issue open.

I think the only thing we could do, is adding an information including a list of affected (not DPI aware) applications on the wiki page.

@felipecrs
Copy link
Author

Well, if I can manually resize the application to fit the zone why PowerToys can't? There must be a way.

@enricogior
Copy link
Contributor

enricogior commented Oct 9, 2020

@felipecrs

is this issue being tracked somewhere else?

If you look at my comment just above yours: https://github.com/microsoft/PowerToys/wiki/Application-Compatibility

if I can manually resize the application to fit the zone why PowerToys can't? There must be a way.

We tried all the available Windows APIs to resize an application and none worked, when you manually resize the window it's not FZ resizing the application, it's the system taking care of it and it doesn't use the public APIs.

@felipecrs
Copy link
Author

I see, thank you for this information.

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