rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 741 forks source link

Rectangle's snap to make full screen feature doesn't make the window truly full screen (a bit of the window behind it is still visible) #1350

Open ComfortableMilk4454 opened 3 months ago

ComfortableMilk4454 commented 3 months ago

macOS version: 14.4.1 (23E224) Rectangle version: 0.76 (82) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): nothing in the log window

Hi! I have been having this issue since I started using rectangle in July 2023, where when using rectangle’s snap to make an app full-screen its not true full screen as you can see a little sliver of the window behind it, unlike when you use macOS's built in way of making a window full screen (by holding down option + clicking green skittle). See the screenshots below so you can see what I'm talking about. I'm assuming this is just a bug and I hope it can be fixed! Thanks so much in advance for any and all responses!

using rectangle’s snap:

Pasted Graphic

as you can see, there's a bit of the window behind it showing here

option + clicking green skittle (macOS snap):

Pasted Graphic 1

as you can see, there is none of the window behind it showing here

rxhanson commented 3 months ago

Thanks for reporting. This is a discrepancy on the macOS side, unfortunately. Rectangle uses the Accessibility API to understand the proper size to make the window, and to apply that size. It might be possible to workaround this by adjusting the value here by a pixel. I don't quite have the bandwidth to test that out at the moment, but will add it to my backlog. I see no reason to turn down a good pull request if someone gets to it before me.

ComfortableMilk4454 commented 3 months ago

lets hope adjusting it by a pixel will work! thanks for the response :)

Aaron-Rumpler commented 3 months ago

You get the same issue if you try to manually resize the window as well. macOS won't let you resize the window all the way down to the top of the dock (the size that macOS allows you do to manually is the same as what Rectangle gets you), but using macOS "zoom" does. Also, if you position the window below the dock and then resize up from the top of the window, that also positions the bottom of the window directly above the dock (without the gap).

ComfortableMilk4454 commented 3 months ago

does this issue persist with the Automatically hide and show the dock function turned on?

Aaron-Rumpler commented 3 months ago

Nope. With dock hiding enabled, Rectangle maximise, macOS Zoom, and manual resizing all resize the window all the way to the bottom of the screen.

rxhanson commented 3 months ago

Good point on the resizing, @Aaron-Rumpler. Unfortunately, I don't think it would be possible to fix this via Rectangle then.