Make "Maximized" style and size locking orthogonal
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.3.9
- OS version: 10.15.3
Detailed steps to reproduce the problem:
- (optional) Duplicate a profile, e.g. the Default profile
- Navigate to
Preferences... > Profiles > (profile name) > Window
- Change
Style
toMaximized
- Open a window in this profile
What happened:
The resulting window is maximized, but cannot be resized or moved.
What should have happened:
The window starts off maximized, but is resizable and movable.
Commentary:
This is a proposed behavior tweak for the new Maximized style. In short, it should act like a "normally" maximized window instead of a kind of "Full Screen Lite", allowing the window to be resized and moved. Use case: I want a maximized iTerm2 window by default in my main profile, but often need to move it around (e.g. when connecting to external monitors) or resize it (use a window snapping utility to snap it half-screen with a different app's window while working).
The proposal is to retain Maximized, but merely make the window maximized as a starting position and size on its originating display. Retain and expand "locked" behavior for users via an implementation of #2713, which has use cases beyond maximized windows.
Thanks!
EDIT: This also feels vaguely related to #8225. I already start these sessions via an AppleScript for LaunchBar integration, so Python API integration is a natural step. While it appears possible to set the window size in cells via the Session API, it's not at all clear how/whether it's possible to calculate that size according to the current physical screen dimensions (e.g. "maximized", "left half of screen", etc.). This may just mean that the calcs used for the Style settings need to be lifted into the API layer, or that I missed how to grab display size info via the Python API.