Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

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

Open sergiofagostinho opened this issue 2 years ago • 3 comments

  • [x] This is a new bug that hasn't been documented in a closed issue or in the Readme.

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

sergiofagostinho avatar Jan 31 '23 08:01 sergiofagostinho

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?

rxhanson avatar Jan 31 '23 14:01 rxhanson

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 avatar Jan 31 '23 15:01 sergiofagostinho

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...

sergiofagostinho avatar Feb 01 '23 10:02 sergiofagostinho

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

rxhanson avatar Jul 21 '24 15:07 rxhanson