Skip to content

macOS: Fix the maximized window not taking up full screen space and other improvements#6035

Merged
kovidgoyal merged 3 commits into
kovidgoyal:masterfrom
page-down:fix-os-window-state
Feb 18, 2023
Merged

macOS: Fix the maximized window not taking up full screen space and other improvements#6035
kovidgoyal merged 3 commits into
kovidgoyal:masterfrom
page-down:fix-os-window-state

Conversation

@page-down

Copy link
Copy Markdown
Contributor
  • Fix the maximized window not taking up full space when the title bar is hidden or when resize_in_steps is configured.
  • Display the newly created OS window in specified state to avoid or reduce the window transition animations.
  • Allows to specify os_window_state in startup session file.

Various combinations of configuration option values that I can think of have been tested.

I'm not quite sure how to create a window with the specified state directly under wayland and x11, so I left it untouched.

If it can be started in various states, rather than created and then changed, then the first time the window is restored to the normal state it needs to be restored to the remembered window size or the configured fixed size, and resize_in_steps should be applied.

Fixes #5863 #6021

Previous Discussion:
#6026

Fix the maximized window can't occupy full screen space when window
decoration or title bar is hidden.
Fix resize_in_steps being applied even when window is maximized.
Allows to specify `os_window_state` in startup session file.
When the remembered window size is the full screen height, the window
height decreases after hiding the title bar.
@kovidgoyal kovidgoyal merged commit 24b2802 into kovidgoyal:master Feb 18, 2023
@page-down page-down deleted the fix-os-window-state branch February 18, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

specify to start in fullscreen from session file?

2 participants