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

Double-click window title bar to maximize/restore issue with Outlook.app search box. #1293

Closed Pax-nl closed 7 months ago

Pax-nl commented 7 months ago

macOS version: 13.6.1 (22G313) Ventura Rectangle version: v0.74 (80) Outlook for Mac version: 16.79.1 (23111718)

When you double click on text in the Outlook.app search box, the "Double-click window title bar to maximize/restore" feature is triggered and the Outlook.app window is resized.

It seems Outlook utilises the window title bar to show the search box, maybe you can exclude these double clicks as this is used to select all the text in this box.

rxhanson commented 7 months ago

Thanks for reporting. I'll slate this one for the next release.

rxhanson commented 7 months ago

Well, bit of a bummer on this one. Rectangle uses the accessibility api in macOS to determine what's being clicked on in a window, and Outlook does not distinguish the search bar from anything else. So, with Rectangle's hands tied, I made an adjustment that lets you disable this feature just for Outlook (or any app as desired) via the following terminal command in v0.75, just released.

defaults write com.knollsoft.Rectangle doubleClickTitleBarIgnoredApps -string "[\"com.microsoft.Outlook\"]"

Then restart Rectangle.

Pax-nl commented 7 months ago

@rxhanson

Awesome, it works perfectly in both Rectangle and Rectangle Pro.

Thank you for the quick response and fix.

As a token of my appreciation, I upgraded to the Pro version.

rxhanson commented 7 months ago

Thanks for upgrading to Rectangle Pro! (I haven't released this in Rectangle Pro yet, but I already put the change in so it'll be in the next release).

Pax-nl commented 7 months ago

This is embarrassing , but I know what happened. When I installed Rectangle Pro, I choose not to import the Rectangle settings, and the double click feature was turned off, this made me believe it worked as I only tested the double click in the search bar.

rxhanson commented 6 months ago

Thanks to some excellent work by @decodism, there's a fix for the issue, rather than my workaround. You can use the unsigned Rectangle build, or wait until this gets released in both Rectangle & Pro.