rxhanson / Rectangle

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

App partially hidden under menu bar when dragged to resize #910

Open nickgertler opened 2 years ago

nickgertler commented 2 years ago

macOS version: 12.3 (on an M1 MacBook Pro, using an Asus ProArt 27" display) Rectangle version: 0.58 Logs if applicable (In Rectangle menu, hold option, "View Logging..."): 2022-09-06T12:22:34-04:00: Unable to obtain the accessibility element with the specified attribute at mouse location 2022-09-06T12:22:39-04:00: Window under cursor fallback matched: Bartender 4 CGWindowInfo(id: 69, pid: 631, rect: (0.0, -4.0, 10000.0, 28.0)) 2022-09-06T12:22:43-04:00: AX sizing proposed: (960.0, 978.0), result: (1766.0, 978.0) 2022-09-06T12:22:43-04:00: AX position proposed: (0.0, 25.0), result: (0.0, 25.0) 2022-09-06T12:22:43-04:00: AX sizing proposed: (960.0, 978.0), result: (1689.0, 978.0) 2022-09-06T12:22:43-04:00: leftHalf | display: (0.0, 77.0, 1920.0, 978.0), calculatedRect: (0.0, 25.0, 960.0, 978.0), resultRect: (-0.0, 25.0, 1689.0, 978.0), srcScreen: ASUS PA279, destScreen: ASUS PA279, resultScreen: ASUS PA279 2022-09-06T12:22:44-04:00: AX sizing proposed: (1843.0, 978.0), result: (1843.0, 978.0) 2022-09-06T12:22:44-04:00: AX sizing proposed: (960.0, 978.0), result: (1766.0, 978.0) 2022-09-06T12:22:44-04:00: AX position proposed: (0.0, 25.0), result: (0.0, 25.0) 2022-09-06T12:22:44-04:00: AX sizing proposed: (960.0, 978.0), result: (1689.0, 978.0) 2022-09-06T12:22:44-04:00: leftHalf | display: (0.0, 77.0, 1920.0, 978.0), calculatedRect: (0.0, 25.0, 960.0, 978.0), resultRect: (0.0, 0.0, 1612.0, 978.0), srcScreen: ASUS PA279, destScreen: ASUS PA279, resultScreen: ASUS PA279 2022-09-06T12:22:48-04:00: Window under cursor fallback matched: Bartender 4 CGWindowInfo(id: 69, pid: 631, rect: (0.0, -4.0, 10000.0, 28.0))

Using Rectangle with certain apps, drag to snap resizes the window underneath the menu bar. This happens no matter what size it's dragged/snapped to. But the issue doesn't occur if the window is resized via keyboard shortcut or the Rectangle menu bar icon.

So far I've only been able to replicate the issue with Spark (the email client). Spark enforces a minimum window size, which often causes issues with tools like Rectangle. I know that when I previously used Magnet, it would just throw a "this window can't be any smaller" error for Spark. Rectangle doesn't have that particular issue with Spark, but I'd imagine that it's related.