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

When moving the maximized window from small screen to large screen using shortcut, the window is no longer maximized #1080

Open GuanHenan opened 1 year ago

GuanHenan commented 1 year ago

macOS version: Ventura 13.2 Rectangle version:0.65 Logs if applicable (In Rectangle menu, hold option, "View Logging..."): 2023-02-20T10:42:51+08:00: AX sizing proposed: (1440.0, 875.0), result: (1440.0, 875.0) 2023-02-20T10:42:51+08:00: AX position proposed: (0.0, 25.0), result: (0.0, 25.0) 2023-02-20T10:42:51+08:00: AX sizing proposed: (1440.0, 875.0), result: (1440.0, 875.0) 2023-02-20T10:42:51+08:00: nextDisplay | display: (0.0, 0.0, 1440.0, 875.0), calculatedRect: (0.0, 25.0, 1440.0, 875.0), resultRect: (0.0, 25.0, 1440.0, 875.0), srcScreen: U28H75x, destScreen: 内建视网膜显示器, resultScreen: 内建视网膜显示器 2023-02-20T10:42:55+08:00: AX sizing proposed: (2560.0, 1415.0), result: (1440.0, 875.0) 2023-02-20T10:42:55+08:00: AX position proposed: (-586.0, -1415.0), result: (-586.0, -1415.0) 2023-02-20T10:42:55+08:00: AX sizing proposed: (2560.0, 1415.0), result: (2026.0, 1415.0) 2023-02-20T10:42:55+08:00: previousDisplay | display: (-586.0, 900.0, 2560.0, 1415.0), calculatedRect: (-586.0, -1415.0, 2560.0, 1415.0), resultRect: (-586.0, -1415.0, 2026.0, 1415.0), srcScreen: 内建视网膜显示器, destScreen: U28H75x, resultScreen: U28H75x

GuanHenan commented 1 year ago

The screen proportions of the two monitors are different.

rxhanson commented 1 year ago

Thanks for reporting. This was introduced by Ventura, and I think it only affects certain displays. I'm pretty certain that this is best fixed macOS side, but I'll see if I can build in a workaround.

ivaquero commented 1 year ago

v0.67 fixed this problem on my mac.

mpeng-okta commented 1 year ago

Is there actually a way to keep the window the same size? I remember when using Spectacle and Rectangle, both on older versions of MacOS before Ventura, I could move windows between monitors without the size changing, and I actually liked that when e.g. moving between my laptop monitor and ultrawide.

rxhanson commented 1 year ago

@mpeng-okta here's the terminal command for it:

defaults write com.knollsoft.Rectangle autoMaximize -int 2

then restart the app

mpeng-okta commented 1 year ago

Oh nice, thank you!

k-funk commented 1 year ago
  • [ ] This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: Ventura 13.2 Rectangle version:0.65 Logs if applicable (In Rectangle menu, hold option, "View Logging..."): 2023-02-20T10:42:51+08:00: AX sizing proposed: (1440.0, 875.0), result: (1440.0, 875.0) 2023-02-20T10:42:51+08:00: AX position proposed: (0.0, 25.0), result: (0.0, 25.0) 2023-02-20T10:42:51+08:00: AX sizing proposed: (1440.0, 875.0), result: (1440.0, 875.0) 2023-02-20T10:42:51+08:00: nextDisplay | display: (0.0, 0.0, 1440.0, 875.0), calculatedRect: (0.0, 25.0, 1440.0, 875.0), resultRect: (0.0, 25.0, 1440.0, 875.0), srcScreen: U28H75x, destScreen: 内建视网膜显示器, resultScreen: 内建视网膜显示器 2023-02-20T10:42:55+08:00: AX sizing proposed: (2560.0, 1415.0), result: (1440.0, 875.0) 2023-02-20T10:42:55+08:00: AX position proposed: (-586.0, -1415.0), result: (-586.0, -1415.0) 2023-02-20T10:42:55+08:00: AX sizing proposed: (2560.0, 1415.0), result: (2026.0, 1415.0) 2023-02-20T10:42:55+08:00: previousDisplay | display: (-586.0, 900.0, 2560.0, 1415.0), calculatedRect: (-586.0, -1415.0, 2560.0, 1415.0), resultRect: (-586.0, -1415.0, 2026.0, 1415.0), srcScreen: 内建视网膜显示器, destScreen: U28H75x, resultScreen: U28H75x

I'm also having this issue after upgrading to Ventura. It also appears not happen with all my external monitors (HP 4k: happens, Apple Thunderbolt Display: happens, LG 4k monitor: doesn't happen.)