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

Snap and hot keys with multiple displays are applied in the main display #1062

Closed sergiofagostinho closed 1 month ago

sergiofagostinho commented 1 year ago

Since updating to Ventura, whenever I try to snap or use a hot key to move a window on my second display, the action is applied to my main display (therefore moving the window to the main display). In general, moving a window to my second display causes a windows resize, and sometimes doesn't even work (see logs below).

macOS version: 13.2 Rectangle version: 0.64, 0.65 Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

Snap:

2023-01-31T08:49:52Z: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-01-31T08:49:54Z: AX sizing proposed: (3440.0, 1022.0), result: (1068.0, 1022.0)
2023-01-31T08:49:55Z: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1022.0)
2023-01-31T08:49:55Z: AX position proposed: (909.0, -1415.0), result: (909.0, 25.0)
2023-01-31T08:49:55Z: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1022.0)
2023-01-31T08:49:55Z: AX sizing proposed: (1720.0, 1022.0), result: (1720.0, 1022.0)
2023-01-31T08:49:55Z: AX position proposed: (909.0, -1022.0), result: (909.0, 25.0)
2023-01-31T08:49:55Z: AX sizing proposed: (1720.0, 1022.0), result: (1720.0, 1022.0)
2023-01-31T08:49:55Z: rightHalf | display: (-811.0, 1120.0, 3440.0, 1415.0), calculatedRect: (909.0, -1415.0, 1720.0, 1415.0), resultRect: (909.0, 25.0, 1720.0, 1022.0), srcScreen: LG ULTRAWIDE, destScreen: LG ULTRAWIDE, resultScreen: Built-in Retina Display

Hotkey:

2023-01-31T08:52:06Z: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1022.0)
2023-01-31T08:52:07Z: AX position proposed: (909.0, -1415.0), result: (909.0, 25.0)
2023-01-31T08:52:07Z: AX sizing proposed: (1720.0, 1415.0), result: (1720.0, 1022.0)
2023-01-31T08:52:07Z: AX sizing proposed: (1720.0, 1022.0), result: (1720.0, 1022.0)
2023-01-31T08:52:07Z: AX position proposed: (909.0, -1022.0), result: (909.0, 25.0)
2023-01-31T08:52:07Z: AX sizing proposed: (1720.0, 1022.0), result: (1720.0, 1022.0)
2023-01-31T08:52:07Z: rightHalf | display: (-811.0, 1120.0, 3440.0, 1415.0), calculatedRect: (909.0, -1415.0, 1720.0, 1415.0), resultRect: (909.0, 25.0, 1720.0, 1022.0), srcScreen: LG ULTRAWIDE, destScreen: LG ULTRAWIDE, resultScreen: Built-in Retina Display

Just dragging the window from one display to another:

2023-01-31T08:53:51Z: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-01-31T08:53:55Z: AX sizing proposed: (2380.0, 1022.0), result: N/A
rxhanson commented 1 year ago

Thanks for reporting and including logs. As a quick sanity check, do you have any other window managers that might be running in addition to Rectangle?

sergiofagostinho commented 1 year ago

Hi @rxhanson , none that I'm aware. But this a work laptop, and my company's IT does silently install software in the background, so it is possible that something in the background might be running that us considered a window manager.

sergiofagostinho commented 1 year ago

And just to add to the above, it seems today the problem is no longer happening. This might be related with a specific display (I use different external displays depending on where I'm working that day), or combination of other factors. Once I'm able to reproduce, I'll add more info in the issue. Until then, perhaps other users might report the same...

rxhanson commented 1 month ago

Closing this one out since it's been a while. Feel free to reopen/comment if anything's changed.