Powertoys: Can't change layout for fanzyZones

Created on 1 Apr 2020  路  12Comments  路  Source: microsoft/PowerToys

Environment

```
Windows build number: Microsoft Windows [Version 10.0.18363.720]
PowerToys version: Version v0.16.0
PowerToy module for which you are reporting the bug (if applicable):
FancyZones

Steps to reproduce

Using the PowerToys Settings, Select FancyZones, Select Edit zones, Select any zone and hit Apply.

Expected behavior

Get a new zone layout like the previous version.

Actual behavior

The zone is staying the default one. The default is Focus.
Tried the hot key. Tried to start as Admin. Tried to make my own zone template. Tried to reboot. Tried to re-install.

Screenshots

Issue-Bug Needs-Author-Feedback Product-FancyZones

Most helpful comment

If you want I can try to create a PR that fixes this (since I can repro this easily).

All 12 comments

@enricogior, i can't repo this.

@OlaMallaug sounds like you did an upgrade. Were you on 0.15.2?

Upgraded from 0.15.2. I'll try to downgrade and see if it works again.

@olamallaung, thanks for working through this with us.

I uninstalled 0.16.0 and reinstalled 0.15.2 and it works fine again. Then I did the upgrade again and it's not working again. I uninstalled 0.16.0 and reinstalled it again, but still not working.
I have only one monitor, but it's a ultra-wide (3840 x 1080) monitor.

@OlaMallaug
can you please reinstall 0.16, apply a columns template and then upload this file:

C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\FancyZones\zones-settings.json

Be aware it contains the app history section (is the list of apps that you have zoned), feel free to edit to remove it for privacy reasons.
When you upload it, rename to to use a .txt extension or zip it otherwise GittHub will not accept it.
Thank you.

I can confirm this as well on my ultra-wide monitor. Happens to my remote desktop sessions. It probably can't find the monitor device anymore. It works fine on the same monitor on the non-RD sessions.

Here is my remote desktop (virtualized) machine zone-settings.json:

{"app-zone-history":[],"devices":[],"custom-zone-sets":[]}
````

Here is the same monitor, but attached to real hardware:

"devices": [
    {
        "device-id": "SAM0F99#5&29836fa9&0&UID261_1680_1050_{00000000-0000-0000-0000-000000000000}",
        "active-zoneset": {
            "uuid": "{17837D3A-33B0-4CE0-B8D2-C2CEE228A872}",
            "type": "columns"
        },
        "editor-show-spacing": true,
        "editor-spacing": 16,
        "editor-zone-count": 3
    },
    {
        "device-id": "SAM0F99#5&29836fa9&0&UID261_1920_1080_{00000000-0000-0000-0000-000000000000}",
        "active-zoneset": {
            "uuid": "{17837D3A-33B0-4CE0-B8D2-C2CEE228A872}",
            "type": "columns"
        },
        "editor-show-spacing": true,
        "editor-spacing": 16,
        "editor-zone-count": 3
    },
    {
        "device-id": "SAM0F9C#7&43b830e&0&UID256_5120_1440_{00000000-0000-0000-0000-000000000000}",
        "active-zoneset": {
            "uuid": "{36CC55BE-1BA6-48B1-90AA-8B6E04D2E73E}",
            "type": "priority-grid"
        },
        "editor-show-spacing": false,
        "editor-spacing": 16,
        "editor-zone-count": 3
    }
],
"custom-zone-sets": []

```

Extra info:

I opened the zones-settings.json in notepad++. Then I open PT and select a new zone. It says the file has changed (so it has rewritten the contents), but the contents remain the same.

Whenever I re-open PT settings for FZ, the settings show the default (which is expected since the file is empty).

I also tried removing the file, and it creates a new one which is empty again.

If you want I can try to create a PR that fixes this (since I can repro this easily).

Hi @GeertvanHorrik
we are aware of some problems with remote desktop session, please open a new issue since we can't track tow different problems in the same issue.
Thanks!

This is the content of my zones-setttings.json:

{"app-zone-history":[],"devices":[],"custom-zone-sets":[{"uuid":"{D7E5F903-6CF5-4BF0-A5E5-8277D0B60B75}","name":"Custom Layout 1","type":"canvas","info":{"ref-width":3840,"ref-height":1040,"zones":[{"X":0,"Y":140,"width":744,"height":624},{"X":744,"Y":140,"width":2304,"height":624},{"X":3012,"Y":412,"width":828,"height":624}]}}]}

No, I have tested it and it works fine in 0.21.1. Thanks!

Was this page helpful?
0 / 5 - 0 ratings