PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[FancyZones] Windows don't automatically resize anymore when switching layouts

Open iesmat opened this issue 5 years ago • 37 comments

ℹ Computer information

  • PowerToys version: 0.27.1 and up
  • PowerToy Utility: FancyZones
  • Running PowerToys as Admin: Yes
  • Windows build number: [run "winver"] Version 20H2 19042.685
  • PC: Dell Latitude 5411 with Integrated Intel UHD graphics and Discrete NVIDIA GeForce MX250

📝 Provide detailed reproduction steps (if any)

Even though I have the setting enabled, the windows don't automatically resize anymore when switching layouts in 0.27.1. This is the most useful feature I use PowerToys for 😃.

  1. Switch to a layout, let's call it layout1, with 2 zones and have 1 window in each zone.
  2. Switch to another layout, let's call it layout2, with also the same 2 zones but different sizes.

✔️ Expected result

The layout is applied and the windows automatically resize to the new zones sizes.

❌ Actual result

The layout is applied, however, the windows are not automatically resized even though I have that setting enabled (During zone layout changes, windows assigned to a zone will match new size/positions)).

📷 Screenshots

Layout1 with 2 zones (currently moving a window to show the zones): image

Layout2 with same 2 zones with different size (currently moving a window to show the new layout is applied correctly, but the windows didn't resize automatically): image

iesmat avatar Dec 11 '20 18:12 iesmat

@enricogior Thanks for fixing the issue with the disabled laptop monitor problem with 0.27.0. Here is the new bug for the issue I mentioned that doesn't resize the windows with 0.27.1.

Thanks!

iesmat avatar Dec 11 '20 18:12 iesmat

@iesmat I cannot reproduce it, can you please post a screenshot of your FancyZones settings? The layout is column layout? A priority layout? Something else? Does it happen with any applications?

enricogior avatar Dec 11 '20 22:12 enricogior

Hi @enricogior,

Below is a screenshot of my settings. My layouts are of type grid:

"custom-zone-sets": [
        {
            "uuid": "<some_UUID>",
            "name": "Work focus",
            "type": "grid",
            "info": {
                "rows": 1,
                "columns": 2,
                "rows-percentage": [
                    10000
                ],
                "columns-percentage": [
                    3246,
                    6754
                ],
                "cell-child-map": [
                    [
                        0,
                        1
                    ]
                ]
            }
        },
        {
            "uuid": "<some_UUID>",
            "name": "Work focus split",
            "type": "grid",
            "info": {
                "rows": 2,
                "columns": 2,
                "rows-percentage": [
                    5000,
                    5000
                ],
                "columns-percentage": [
                    3247,
                    6753
                ],
                "cell-child-map": [
                    [
                        0,
                        1
                    ],
                    [
                        2,
                        1
                    ]
                ]
            }
        },
        {
            "uuid": "<some_UUID>",
            "name": "Meeting focus",
            "type": "grid",
            "info": {
                "rows": 1,
                "columns": 2,
                "rows-percentage": [
                    10000
                ],
                "columns-percentage": [
                    4482,
                    5518
                ],
                "cell-child-map": [
                    [
                        0,
                        1
                    ]
                ]
            }
        }
    ]

image

iesmat avatar Dec 11 '20 23:12 iesmat

@iesmat I applied the same settings but still it doesn't reproduce.

enricogior avatar Dec 13 '20 00:12 enricogior

@enricogior This is a constant repro for me. Want me to collect any logs? I tried restarting, closing and opening PowerToys, toggling the options off and on, killing explorer.exe and starting it again. Nothing worked. 0.25.0 worked for me with no problems whatsoever.

iesmat avatar Dec 13 '20 05:12 iesmat

@iesmat in 0.27 we didn't make any explicit change to this feature. Since we never had issues with this, we don't have any debug log for it. We would need to create a private build with dedicated log.

enricogior avatar Dec 13 '20 09:12 enricogior

Does it depend on hardware like the other disabled monitor bug that was fixed? This is a really easy repro for me and happens all the time. I tried to do a fresh install of PowerToys by removing the old settings in AppData and it still didn't work.

0.25 works without any problems (though right after installing, I have to toggle FancyZones off and on).

iesmat avatar Dec 14 '20 08:12 iesmat

@iesmat do you have the laptop built-in display off, right? If you turn it on does it still happen?

enricogior avatar Dec 14 '20 08:12 enricogior

yep, built-in display off. Still happens when I turn it on.

iesmat avatar Dec 14 '20 08:12 iesmat

@iesmat can you zip and upload

%localappdata%\Microsoft\PowerToys\FancyZones\zones-settings.json

I need the whole file, not just the custom zones definitions.

enricogior avatar Dec 14 '20 09:12 enricogior

@enricogior Here is my zones-settings. zones-settings.zip

iesmat avatar Dec 15 '20 16:12 iesmat

@enricogior Did you manage to find out anything?

iesmat avatar Dec 18 '20 18:12 iesmat

@iesmat there is nothing wrong in your settings, so this must be a bug in the code for that particular configuration, I need to do more debugging.

enricogior avatar Dec 18 '20 22:12 enricogior

@enricogior Sounds good. Let me know if you need anything else. I'm using 0.25 in the meantime.

iesmat avatar Dec 18 '20 22:12 iesmat

@enricogior This still repros for me on my Work laptop with 0.29.3. Surprisingly though, it doesn't repro on my personal laptop and it's using the same external monitor (not at the same time) with 0.29.3.

iesmat avatar Jan 11 '21 19:01 iesmat

I have the same problem using either 0.27.1 or 0.29.3 on desktop machine with:

  • Single wide monitor (3440x1440 - Samsung C34H89x).
  • Dedicated graphic card (AMD Fire Pro 2270 - latest driver 15.201.2401.1010 from 2017-01-30).
  • Windows 10 20.04

I have tried to delete all settings and start from fresh. Didn't help. It doesn't work with both predefined or custom layouts. I have tried to check/uncheck all related settings. I will try 0.25 version.

EDIT: It works flawlessly with 0.25 version for both predefined and custom layouts. Thanks @iesmat for the tip.

slowan avatar Jan 12 '21 17:01 slowan

I also have this issue with 0.31.1

twigs avatar Feb 05 '21 04:02 twigs

@enricogior Same here. Still repros for me with 0.31.1.

iesmat avatar Feb 05 '21 19:02 iesmat

this is something we're looking at in 0.33 (this month)

crutkas avatar Feb 05 '21 19:02 crutkas

@iesmat please update to 0.31.2. Does it still repro with 0.31.2?

enricogior avatar Feb 06 '21 08:02 enricogior