RectanglePro-Community icon indicating copy to clipboard operation
RectanglePro-Community copied to clipboard

App Layout only moves a single window of an application

Open kevinvanmierlo opened this issue 9 months ago • 6 comments

I use App Layouts because mac sometimes moves my application windows to another monitor. So I have a default which moves every application to the correct monitor. However, it's not working anymore. Right now it only moves the top most window. I have to click the other window and click the App Layout again to make the other window move. If I have a third window, I have to repeat this process. So it's not really convenient anymore.

Can you look into this? I'm not sure when I updated the app (or mac), but it appears to be happening in the last week or two. I have the app version v3.53 (194) and my mac is Sequoia 15.5.

kevinvanmierlo avatar May 30 '25 08:05 kevinvanmierlo

Thanks for reporting. This is a side-effect of fixing other behavior with App Layouts. Moving all of the windows of an application could result in ambiguous or unexpected behavior due to some of the underlying behavior of how Rectangle Pro matches up windows based on window titles where possible. Although this changed, you can revert back to the previous behavior with this Terminal command, followed by restarting the app:

defaults write com.knollsoft.Hookshot appLayoutsExecuteOnAllAppWindows -int 1

Your feedback is one way that I can tell if this functionality is still desired, so I'll consider making this an option in the UI at some point.

rxhanson avatar May 30 '25 17:05 rxhanson

Thanks for the workaround, I'll try it on Monday again.

I'm not sure what unexpected behavior could occur, but for me it worked exactly how I expected it. Actually, it is the reason I bought the pro version in the first place. I was puzzled why it didn't move any other Windows of the application. So for me the old way was better and I'm not sure new users would expect only a single window is being moved.

kevinvanmierlo avatar May 30 '25 18:05 kevinvanmierlo

I usually want all windows of the app moved, I frequently have a variable number of them open on the same app. Having only some of them auto-position is frustrating.

I say usually, because as mentioned in my other issue I would like to be able to have some windows with a specific title be placed differently to the main windows of the app.

My preferred behaviour

  • all safari windows move to position A, size B
  • all Firefox windows move to position C, size D
  • all main coding windows of IntelliJ move to position E, size F
  • bookmarks window of IntelliJ moves to position G, size H
  • outline window of IntelliJ moves to position I, size J
  • etc.

Thanks.

sjregan avatar Jun 16 '25 22:06 sjregan

@sjregan Would you be willing to see my comment at https://github.com/rxhanson/RectanglePro-Community/issues/754#issuecomment-3146966121? I understand your concern (that you linked to in #680, and I subscribed to that issue because I'm interested in it too), but I'm asking you just because you use IntelliJ and I'm assuming it suffers from the same problem I'm seeing with PhpStorm, which is that the fix mentioned in this issue does NOT work for PhpStorm, although it does work for other apps like Chrome. If you could confirm what I'm seeing, then I will open a ticket with Jetbrains about it.

tylercollier avatar Aug 03 '25 04:08 tylercollier

I'm not sure if it's related to the defaults command, but I've noticed the configuration for my App Layouts in settings keeps resetting the option for applying to all windows. When I turn on the option for the layout it works until I restart Rectangle, at which time it reverts to unchecked.

jtwee avatar Oct 31 '25 13:10 jtwee

@jtwee thanks, I've patched this up and it will go out in the next release. It's unrelated to the defaults command.

rxhanson avatar Oct 31 '25 15:10 rxhanson