PowerToys: PowerShell windows don't snap into desired place in FancyZones

ℹ Computer information

  • PowerToys version: v0.25.0
  • PowerToy Utility: Fancy Zones
  • Running PowerToys as Admin: Yes
  • Windows build number: 20H2 (compilation no. 19042.630)

PS Version

  • PSVersion 5.1.19041.610
  • PSEdition Desktop
  • PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
  • BuildVersion 10.0.19041.610
  • CLRVersion 4.0.30319.42000
  • WSManStackVersion 3.0
  • PSRemotingProtocolVersion 2.3
  • SerializationVersion 1.1.0.1

📝 Provide detailed reproduction steps (if any)

  1. Have your monitor in portrait mode // added later
  2. Press Win + ` to open Fancy Zones editor
  3. Make desired zones and set them
  4. Spawn and grab PowerShell window.
  5. Release shift key after highlighting desired zone // edit: releasing mouse button first and then shift yields the same results

✔️ Expected result

Window snaps into place with right position and dimensions

❌ Actual result

Window changes the size to reflect the zone size, but it stays in place (doesn’t snap into the grid)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (6 by maintainers)

Most upvoted comments

I ran into a similar problem where PowerShell and cmd prompt cannot snap to a zone. After trying around, in my case, I found it is neither FencyZones nor PS problem. Instead, it is a correct privileged behavior.

  1. Firstly, I opened PS/cmd as an Administrator and failed to snap to a zone. However, if I opened PS/cmd as a normal user, snapping to a zone works.
  2. Secondly, if I run PowerToys as Administrator, the opened PS/cmd as an Administrator can be snapped to a zone. image

Speaking as the owner of conhost… we’re probably not going to fix this.

@tybin this has nothing to do with PS. Let’s see what @DHowett thinks about this issue