microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.66k stars 6.46k forks source link

Windows Explorer Position on launch #12211

Open RedSkyRoad opened 3 years ago

RedSkyRoad commented 3 years ago

Microsoft PowerToys version

0.41.4

Running as admin

Area(s) with issue?

FancyZones

Steps to reproduce

I place Windows Explorer in a zone, close it and re-open it. It does not go back to the zone I left it in. All settings has been setup correctly because all other software remembers their positions and zones...

✔️ Expected Behavior

Windows Explorer is supposed to open in its Zone

❌ Actual Behavior

Windows Explorer opens outside any zone available

Other Software

No response

dedavis6797 commented 3 years ago

I can repro this pretty easily. I'm not sure if Windows Explorer has special properties that makes it override the previous zoning, but it's worth investigating for our general stability efforts.

I also notice different behaviors for other apps (like calculator) based on the zone I attach them to. For a zone that takes up the full height of the display, closing and reopening the app displays it at full screen, whereas a zone that only takes up, say the top right corner, will close and reopen in the same position as expected.

RedSkyRoad commented 3 years ago

AWESOME, thanks!!

RedSkyRoad commented 3 years ago

This is a workaround I found : It might not solve the problem now but the workings of it might help to see what windows is doing : https://superuser.com/questions/771431/change-default-windows-explorer-file-browser-size-and-position

So after positioning my window to a zone, I noticed that it keeps opening exactly where I let the window go, in the zone. So after zoning it, i moved my mouse to the edge as if I want to resize it, then just click the border while the resize arrow is showing, and then closing it with ctrl-shift-"close X". Then it opens exactly on last position.

huntardy commented 2 years ago

Having the same issue, however in my case it does work as indented with File Explorer but no other UWP apps, Mail, calendar, To Do, Calculator, Media Player, 3d Viewer all open full screen after closing.

My only fix to date is to delete and recreate my custom zones but the issue returns after a while.

Windows 11, 3440x1440 Primary Display, 4K Secondary Display.

StewBC commented 2 years ago

Since my issue was closed as a dup of this, I will add my info - which is related but a bit different: Everything works, incl. snapping explorer windows, Powershell, etc. Then, when I reboot my computer, the snapping when re-opening a windows that was snapped previously doesn't work. The windows don't open like they would if PowerToys isn't running, they do get affected, but they certainly aren't opening snapped to a zone. Snapping them to a zone still works as normal, but closing/opening the windows have them open elsewhere. However, if I open the PowerToys settings and toggle FancyZones off and on again, then the windows snap back to the zones they were snapped to before (even back to zones they were snapped to before the reboot) and everything works perfectly, till the next reboot (even through a computer sleep FancyZones will keep working - just a reboot "breaks" FancyZones).

eproxus commented 1 year ago

Have the same problem with multiple apps (Discord, Cider, Steam etc.).

The temporary workaround mentioned by @huntardy works: what I do is I go into the zones editor and duplicate all my layouts, assign the new versions to the correct monitors, and then delete the old layouts. After that it works for a while, until it breaks again.

alessiomeloni commented 1 year ago

I'm still encountering this issue with the functionality of moving newly created windows to their last known zone in version 0.66.

I have noticed that this problem is not only limited to Windows Explorer, but also affects other programs such as WhatsApp, Telegram, the Windows default mail client, Brave, and possibly more. Sometimes, these programs, including Windows Explorer, open in the upper left corner of my first monitor with a very small window size.

It's quite frustrating to have to constantly reposition my windows every time I open them😂

Jay-o-Way commented 1 year ago

@SeraphimaZykova I'm guessing this situation would be because explorer.exe is always running, and the windows that are created all come from the same process. I believe the desktop and task bar are also explorer.exe (correct me if needed) so that might be confuzing for FancyZones??

radutomy commented 1 year ago

Reporting the same problem. Non-UWP apps don't seem to remember their last position after getting closed. Visual Studio, Firefox, Discord etc

FoxxMulder commented 1 year ago

Same problem, doesn'y work as expected, i use PowerToys 068.1 and Wind 11 22H2 (22621.1413) before the last windows update works fine. Any solution?

JotaRata commented 1 year ago

Same thing happens with the "Move newly created windows to active monitor" option enabled. Only UWP apps are moved, apps like Firefox, Discord and Windows explorer remain on the last monitor I closed them

RickOtter commented 10 months ago

Fancy zones issue - certain apps not remembering last zone [Win 11] [5120x1440 monitor] [Version 0.75]

Expected Behaviour:

Actual Behaviour:

Settings:

Additional info:


IMPORTANT UPDATE

As of v0.75.1 - "The generalization of a fix for snapping popup windows was causing many applications to not be snappable by FancyZones. We're reverted that change for this patch and we'll investigate a better fix for a future release."

This change has resolved some of my issues and created others.