Closed simurgh9 closed 8 months 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.
Okay I found that putting,
(setq frame-resize-pixelwise t)
in the config file fixes the issue.
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).
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.