Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

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

Open giannidallatorre opened this issue 1 year ago • 2 comments

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

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:

  • Utilize a setup with multiple screens, each featuring multiple desktops.
  • Set the primary display on the second Desktop
  • Open Google Chrome and position a window on a secondary monitor.
  • Initiate the "Next Display" action within the software.

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! :)

giannidallatorre avatar May 07 '24 08:05 giannidallatorre

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?

rxhanson avatar May 10 '24 00:05 rxhanson

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.

giannidallatorre avatar May 13 '24 09:05 giannidallatorre