rxhanson / Rectangle

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

Gap at the end of the screen when maximising some apps like Emacs and Terminal. #1079

Closed simurgh9 closed 8 months ago

simurgh9 commented 1 year ago

Some apps (maybe ones that measure height in lines) like Emacs and Terminal leave a little gap at the end of the screen when resized as "Center Half" and other sizes that span the height. This does not happen if I double click on the window decoration top (where the minimise button is).

out

Left was done by using a Rectangle keybinding and right was done by doubly clicking the window decoration.

This does not quite happen on the laptop's internal display. It happens on a Dell 24-inch (1920 × 1080) monitor. If this could somehow be handled I'll be grateful.

macOS version: 13.1 22C65 arm64 
Rectangle version: v0.65 (71)
rxhanson commented 1 year ago

Unfortunately, I think there is no way to do this using the Accessibility API (the only way to move/resize windows as a 3rd party). Your best bet is finding a configuration in those apps that will turn off window sizing by line height. iTerm2 has a terminal command for it that's in the Rectangle readme, but I don't know about emacs & Terminal.

simurgh9 commented 8 months ago

Okay I found that putting,

(setq frame-resize-pixelwise t)

in the config file fixes the issue.