rxhanson / Rectangle

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

Windows auto-resize in stage manager when clicking app icon on the side #1291

Open alexrecuenco opened 7 months ago

alexrecuenco commented 7 months ago

macOS version: 14.1.1 Rectangle version: Rectangle 0.74 is currently the newest version available. Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

What happens?

As soon as I click the icon of an app on the left side (which would usually show all the windows) It instead, for some reason, contracts them all to their minimum width and shows them like the screenshots show.

Let me be clear, when I click an icon of an app on stage manager, the icon you click to display a side view of multiple windows of the same app, ALL applications, of ALL types become as small as they can be in their horizontal dimension

Screenshot 2023-11-16 at 11 19 51 PM Screenshot 2023-11-16 at 11 20 24 PM

This happens in two MacBooks I have, (13" M1 and 13" M2), for work and personal respectively.

a) Is there a recommended way to change to a previous version until this is fixed? b) Is this a known issue

Logs by simply clicking the app icon on the side of the stage manager:

2023-11-16T23:28:18+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:28:21+01:00: Window under cursor fallback matched: Finder

More raw logs of me clicking the symbol for an app, and then resizing again all apps to max size a few times

2023-11-16T23:25:40+01:00: Window under cursor fallback matched: Rectangle
2023-11-16T23:25:42+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:42+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:43+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 879.0)
2023-11-16T23:25:43+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:43+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:25:43+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:43+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:43+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:43+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:44+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:45+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 823.0)
2023-11-16T23:25:45+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:45+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:25:45+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:45+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:45+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:45+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:46+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:46+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:46+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (942.0, 880.0)
2023-11-16T23:25:46+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:46+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:46+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:46+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:46+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:46+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 880.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:47+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:47+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:48+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (958.0, 880.0)
2023-11-16T23:25:48+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:48+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:48+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:48+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:48+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:25:48+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 880.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:50+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:52+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:53+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:55+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:25:56+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 879.0)
2023-11-16T23:25:56+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:56+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:25:56+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:56+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:56+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:25:56+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:57+01:00: AX sizing proposed: (668.0, 880.0), result: (668.0, 879.0)
2023-11-16T23:25:57+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:57+01:00: AX sizing proposed: (668.0, 880.0), result: (668.0, 879.0)
2023-11-16T23:25:57+01:00: AX sizing proposed: (668.0, 879.0), result: (668.0, 879.0)
2023-11-16T23:25:57+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:25:57+01:00: AX sizing proposed: (668.0, 879.0), result: (668.0, 879.0)
2023-11-16T23:25:57+01:00: leftHalf | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 668.0, 880.0), resultRect: (133.0, 37.0, 668.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:25:58+01:00: Window under cursor fallback matched: Rectangle
2023-11-16T23:26:01+01:00: Window under cursor fallback matched: Code
2023-11-16T23:26:02+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:26:02+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:02+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:26:02+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:02+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:02+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:02+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:03+01:00: Window under cursor fallback matched: Finder
2023-11-16T23:26:03+01:00: Unable to obtain window id
2023-11-16T23:26:03+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:04+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:04+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:05+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 879.0)
2023-11-16T23:26:05+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:05+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:26:05+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:05+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:05+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:05+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:05+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:06+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:08+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:09+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 879.0)
2023-11-16T23:26:09+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:09+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:26:09+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:09+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:09+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:09+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:10+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:11+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (935.0, 879.0)
2023-11-16T23:26:11+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:11+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 879.0)
2023-11-16T23:26:11+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:11+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:11+01:00: AX sizing proposed: (1336.0, 879.0), result: (1336.0, 879.0)
2023-11-16T23:26:11+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 879.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:12+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:12+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:13+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (958.0, 880.0)
2023-11-16T23:26:13+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:13+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:13+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:13+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:13+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:13+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 880.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:14+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:14+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:15+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (942.0, 880.0)
2023-11-16T23:26:15+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:15+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:15+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:15+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:15+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:15+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 880.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:16+01:00: Unable to obtain the accessibility element with the specified attribute at mouse location
2023-11-16T23:26:18+01:00: Window under cursor fallback matched: ChatGPT
2023-11-16T23:26:19+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (942.0, 880.0)
2023-11-16T23:26:19+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:19+01:00: AX sizing proposed: (1336.3567199707031, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:19+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:19+01:00: AX position proposed: (133.64328002929688, 37.0), result: (133.0, 37.0)
2023-11-16T23:26:19+01:00: AX sizing proposed: (1336.0, 880.0), result: (1336.0, 880.0)
2023-11-16T23:26:19+01:00: maximize | display: (133.64328002929688, 39.0, 1336.3567199707031, 880.0), calculatedRect: (133.64328002929688, 37.0, 1336.3567199707031, 880.0), resultRect: (133.0, 37.0, 1336.0, 880.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-11-16T23:26:25+01:00: Window under cursor fallback matched: Rectangle
rxhanson commented 7 months ago

Thanks for the details. Just to be sure this is a Rectangle issue, does it happen if Rectangle is not running?

alexrecuenco commented 7 months ago

I just restarted and tried to reproduce it.

Indeed when Rectangle is turned off, it doesn't seem to happen.

With your suggestions I have been doing some testing of clicking around, and it seems to only affect windows that were open after Rectangle was restarted.

That is to say, when I quit Rectangle the resizing stops happening. If I open a new window with Rectangle off it doesn't happen. But when I turn Rectangle back on, only those windows that were opened after I opened rectangle again get affected.

Since I had some time, I started playing with all the settings, to try to isolate the combination of settings. Playing with all the settings on the GUI of rectangle seem to not have any effect, however, the resizing stops happening when I set "show windows from an application" to "All at once". And it starts happening again when I switch it back to "One at a time" (For all windows that were affected already and already opened)

Note: It does not just affect apps with multiple windows opened, I tried with the Calendar and Docker Desktop and they also have the same behavior, if they are opened after

rxhanson commented 7 months ago

Thanks for the additional details. Unfortunately, I haven't been able to reproduce this. If you don't mind, maybe I can figure something out if you send me your rectangle config? Perhaps a quick screen recording would be most helpful as well.

miwitham commented 7 months ago

This has been happening to me for a short while as well. I captured a brief screen recording here.

Steps to reproduce

  1. Start without Rectangle running.
  2. Open two Visual Studio Code (or any app) windows.
  3. Click the icon for Code and see that the windows maintain their size.
  4. Quit the Code windows with cmd + q.
  5. Launch Rectangle.
  6. Open two Code windows again.
  7. Click the icon for Code and see that the windows have now shrank their width significantly.

I'm on Rectangle 0.74 on an M1 Pro MacBook running macOS 14.0.

alexrecuenco commented 7 months ago

I can confirm that video is basically what happens to me.

Have you tried to see if switching the Stage Manager Window option to "Open all at once" stops that behavior?