rxhanson / Rectangle

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

Is not working for iTerm2 #1020

Open HtetOoWaiYan opened 1 year ago

HtetOoWaiYan commented 1 year ago

macOS version: Monterey 12.6.1 (21G217) Rectangle version: v0.63 (69) iTerm2 version: Build 3.4.18

I've run the command defaults write com.googlecode.iterm2 DisableWindowSizeSnap -integer 1 as the readme recommends.

But Rectangle shortcuts do not work for my iTerm2.

Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

2022-12-04T22:37:12+06:30: Window under cursor fallback matched: Brave Browser WindowInfo(id: 152, layer: 0, frame: (0.0, 25.0, 1440.0, 875.0), pid: 1713)
2022-12-04T22:37:18+06:30: AX sizing proposed: (720.0, 875.0), result: (1440.0, 875.0)
2022-12-04T22:37:18+06:30: AX position proposed: (0.0, 25.0), result: (0.0, 25.0)
2022-12-04T22:37:18+06:30: AX sizing proposed: (720.0, 875.0), result: (1440.0, 875.0)
2022-12-04T22:37:18+06:30: leftHalf | display: (0.0, 0.0, 1440.0, 875.0), calculatedRect: (0.0, 25.0, 720.0, 875.0), resultRect: (0.0, 25.0, 1440.0, 875.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2022-12-04T22:37:19+06:30: AX sizing proposed: (720.0, 875.0), result: (1440.0, 875.0)
2022-12-04T22:37:19+06:30: AX position proposed: (720.0, 25.0), result: (0.0, 25.0)
2022-12-04T22:37:19+06:30: AX sizing proposed: (720.0, 875.0), result: (1440.0, 875.0)
2022-12-04T22:37:19+06:30: rightHalf | display: (0.0, 0.0, 1440.0, 875.0), calculatedRect: (720.0, 25.0, 720.0, 875.0), resultRect: (0.0, 25.0, 1440.0, 875.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
rxhanson commented 1 year ago

Thanks for reporting & including logs. This is a situation where iTerm2 is just not responding to the Accessibility API properly. You can try restarting iTerm2, but that might not fix it. Unfortunately, there's anything that could be done Rectangle side for this.