rxhanson / Rectangle

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

Fullscreen with hidden menu bar still thinks that the menu bar exists #1043

Open eugenesvk opened 1 year ago

eugenesvk commented 1 year ago

I'm using an app with <key>LSUIPresentationMode</key><integer>3</integer> setting in info.plist which means on launch this app hides the menu bar. I'm able to manually increase the size of the app's window to cover the full screen, including the area where the menu bar once was However, when I use the ⌃⌥↩ shortcut to maximize the window via Rectangle, the window is not covering the full scren area, instea, the background-colored bar where the menu bar once was remains

macOS version: 10.15 Rectangle version: 0.64 (70 Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

AX sizing proposed      : (          1280.0, 777.0) , result:         (           1153.0, 738.0)
AX position proposed    : (             0.0,  23.0) , result:         (              0.0,  23.0)
AX sizing proposed      : (          1280.0, 777.0) , result:         (           1280.0, 777.0)
maximize | display      : (0.0, 0.0, 1280.0, 777.0) , calculatedRect: (0.0, 23.0, 1280.0, 777.0), resultRect: (-0.0, 23.0, 1280.0, 777.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display

Am I correct that the 23 offset is the size of the menu bar? And if so, is it possible to "propose" AX sizing/position to skip it and have 800 instead of 777

rxhanson commented 1 year ago

Thanks for the detailed report (yes, 23 is the offset size for the menu bar).

This is a macOS bug where Rectangle relies on macOS to tell it the "usable" screen size.

I don't have the bandwidth at the moment, but if anyone wants to add in a Terminal command configured option to just use the whole screen, I'd merge it in.