microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.49k stars 6.45k forks source link

Custom Layouts Keep Reverting #20205

Open TheP14C3B0 opened 2 years ago

TheP14C3B0 commented 2 years ago

Microsoft PowerToys version

0.61.1

Running as admin

Area(s) with issue?

FancyZones Editor

Steps to reproduce

I searched, but couldn't find anything exactly like this, so forgive me if this is a duplicate ticket.

I recently used my computer with a different dock and two different monitors, with different aspect ratios from each other and my normal monitors.

Now that I'm back to my original ones the Zones I have set up are all a few pixels away from the Task Bar.

If I modify the Layouts to how they should be (pulling down 12-14 boxes to make them flush with the taskbar) then all is fine.... until I undock again.

After re-docking, Layouts are back to being a few pixels away. No matter how many times I alter the Layouts, this continues to happen. I have a suspicion they aren't saving properly, but can't take a look into the code atm.

Edit: Turns out the initial window zone in the layout is fully "to the bottom" and the second window is fully "to the right" while all the rest are neither and "float." See Fourth image below for reference.

Last Edit: Maybe this bug just got introduced because it never used to behave like this, but now I can simply re-click on one of the monitors, after saving a modification inside of the Zone Editor, and the spacing between windows and the edges of the displays will re-appear. No need to undock, power off, or change any settings at all. Just click on another monitor and then back to the one you just edited and saved.

Main Layout: LayoutOne

Secondary Layout: LayoutTwo

Layout Edit Mode: LayoutThree

Layout Edit Mode Fullscreen Landscape: LayoutFour

✔️ Expected Behavior

Editing Fancy Zones Layouts will change them permanently.

❌ Actual Behavior

After rebooting and/or undocking and then redocking the Layouts revert to a previously altered version of themselves.

Also: clicking on different 'monitor,' after saving a modification during zone edits, and back on the original will result in this bug reappearing - effectively making any

Other Software

No response

Edits: Added the third, and then later the fourth images. Text to explain the fourth image and the realization of how easy this bug is to reproduce.

abhirajD commented 2 years ago

Related to #20209

TheP14C3B0 commented 2 years ago

Related to #20209

That would have to be a very loose relationship. The Custom Layouts are always correctly selected and applied to the related monitors. It's the Layouts themselves that are changing. Please see the "Layout Edit Mode" images above to gain a better understanding.

Edit: Pluralized 'image.'

CyberScooby commented 1 year ago

Same issue here, ever since I first installed PowerToys about a month ago.

@shayeryan workaround from #7790 appears to work. Just need to remember to manually exit PowerToys everyday prior to shutdown.

FYI - I do a proper Windows shutdown and not the "fast reboot" that is actually hibernate disguised as a "shutdown". I am guessing this is why only certain people see this bug. Try turning off "fast reboot" to see if you can replicate this bug in order to fix it. ;)

CyberScooby commented 1 year ago

UPDATE: The first time I performed the workaround it seemed to work, but it has never worked since. There is no current resolution to this and it is a daily annoyance & time sink which I cannot afford. It should be a simple matter to replicate & fix this. Simply disable Windows "fast boot", change some settings in FancyZones, reboot or shutdown & then see how your settings revert.

Hukha commented 1 year ago

Looks the same as #7790. No workaround works for me.