microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.9k stars 6.59k forks source link

Adds margins to regular windows snapping when installed #27655

Open niico100 opened 1 year ago

niico100 commented 1 year ago

Microsoft PowerToys version

0.71.0

Installation method

Microsoft Store

Running as admin

None

Area(s) with issue?

FancyZones

Steps to reproduce

When Fancy Zones enabled just regular Windows snapping adds a margin around windows. Unclear exactly when and how this happens but my snapped windows always seem to endup with a margin.

Super annoying, why would you EVER want to waste screen space like this? It should also not be the default for fancy zones to add margins around windows, disabling fancy zone margins also seems to have bugs and needs doing on every layout.

✔️ Expected Behavior

No margins ever around windows snapped with Windows built in snapping.

If you re-snap the window it does appear to fix it.

❌ Actual Behavior

Margins are added

Other Software

No response

Jay-o-Way commented 1 year ago

Hello and thanks for your message. How do you snap windows at first? With Win+ {left/right}? I'm thinking, FancyZones has a setting to "Override windows snap". Can you tell if that setting is turned on? Also: could you check if any of your layouts use Space between zones? /needinfo

niico100 commented 1 year ago

I drag windows to the sides of the screen to snap. On other machines I spent a long time manually removing space between zones (srsly why is wasted screen space the default?) but it was buggy ah (margins randomly came back) and I just gave up using it. On this machine I haven't manually removed any margins from zones yet. It shouldn't be affecting regular windows snapping margins though right?

I'd just love a universal setting to turn off margins for all snapping OS wide, seems like the code might be a bit of a mess?

thx

Jay-o-Way commented 1 year ago

Hm, would be strange if FancyZones captures a drag to the edge. Does that area match with the used layout at all? I mean, does the layout have a left or right half? A screenshot would be very helpful here.

niico100 commented 1 year ago

You're misunderstanding me.

Regular windows snapping GETS A BORDER when I install FancyZones / PowerToys.

I know it's bizarre, maybe they share a variable somewhere?

Last I checked margins with Fancy Zones itself are also hosed (they come back even if you set to 0) but I haven't checked for a couple of months.

This image is a window snapped side by side with another window using windows snapping, not FancyZones, but since I installed FancyZones now this has a margin too. If you resnap it goes away but then comes back after a while (not sure what the trigger for that is yet).

image

thx

Jay-o-Way commented 1 year ago

Calling @SeraphimaZykova for help

niico100 commented 1 year ago

image

This is on my internal laptop display, I have 3 monitors attached, that is no longer the 'main' windows display. The windows were snapped with windows snapping (not Fancy Zones) with no margin, after a while they always endup with a margin since Fancy Zones / Power Toys was installed. Why? Super annoying nobody asked for margins.

FancyZones seems to even give windows snapped windows margins.

cinnamon-msft commented 1 month ago

Are you still experiencing this issue? /needinfo

niico100 commented 1 month ago

I mostly just use Fancy Zones now (not built in Windows snapping), all layouts are set to zero border, however the border is added later, seems to be after hibernation.

Here's the window I'm writing this in right now, on my second display. Resnapping the window fixes it, I'm amazed more people aren't reporting this.

Image