rxhanson / Rectangle

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

Next/Previous Display Option Malfunction with Multiple Desktops, when initiated from a Secondary Screen #1383

Open giannidallatorre opened 1 month ago

giannidallatorre commented 1 month ago

macOS version: Sonoma 14.4.1 (23E224) Rectangle version: 0.77 Logs if applicable:

2024-05-07T10:18:01+02:00: AX sizing proposed: (1852.0, 1035.0), result: (1430.0, 865.0)
2024-05-07T10:18:01+02:00: AX position proposed: (58.0, 35.0), result: (58.0, 35.0)
2024-05-07T10:18:01+02:00: AX sizing proposed: (1852.0, 1035.0), result: (1628.0, 1035.0)
2024-05-07T10:18:01+02:00: nextDisplay | display: (48.0, 0.0, 1872.0, 1055.0), calculatedRect: (58.0, 35.0, 1852.0, 1035.0), resultRect: (58.0, 35.0, 1628.0, 1035.0), srcScreen: Built-in Retina Display, destScreen: BenQ EW3270U, resultScreen: BenQ EW3270U
2024-05-07T10:18:05+02:00: AX sizing proposed: (1420.0, 855.0), result: (1420.0, 855.0)
2024-05-07T10:18:05+02:00: AX position proposed: (256.0, 1115.0), result: (256.0, 1115.0)
2024-05-07T10:18:05+02:00: AX sizing proposed: (1420.0, 855.0), result: (1420.0, 855.0)
2024-05-07T10:18:05+02:00: previousDisplay | display: (246.0, -900.0, 1440.0, 875.0), calculatedRect: (256.0, 1115.0, 1420.0, 855.0), resultRect: (256.0, 1115.0, 1420.0, 855.0), srcScreen: BenQ EW3270U, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display

Title: Next/Previous Display Option Malfunction with Multiple Screens

Description:

The "Next/Previous Display" option is exhibiting irregular behavior, particularly when interacting with applications such as Google Chrome. The issue arises when multiple screens are in use, each with multiple desktops.

When a window from Chrome is situated on a secondary monitor and the "Next Display" action is initiated, the window correctly relocates to the adjacent monitor. However, it consistently places the window on the first display rather than the focused screen.

The anomaly exclusively occurs when the window is shifted from a secondary to primary monitor. Conversely, when transitioning from the primary to a secondary monitor, the window aligns with the focused screen as expected.

Steps to Reproduce:

Expected Behavior:

The Chrome window should relocate to the adjacent monitor while adhering to the focused screen within the multiple desktop setup.

Thanks for the excellent software and for your attention to this issue! :)

rxhanson commented 1 month ago

Thanks for reporting. I'm guessing windows to other apps do get moved as expected? Is there a common thread to the apps that don't work properly, like Chrome/Electron based ones?

giannidallatorre commented 1 month ago

Thank you! Yes, the other apps do get moved as expected. I am unsure if it is only Chrome having this issue. I do use electron-based apps, but I don't recall having seen the same behavior. I've tested a few now, and it may just be Chrome.