rust-windowing / rust-windowing/winit

Toggling fullscreen on macOS reduces window height

Open
#2,803 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

B - bug DS - appkit
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

It seems like when toggling simple fullscreen and going back to windowed the window size is incorrect. This only happens when the decorations are visible so I'd assume the mistake is related to the window dimension calculations not properly including the decoration's height.

Originally reported to Alacritty in https://github.com/alacritty/alacritty/issues/6921.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the macOS fullscreen transition with decorations visible, using the behavior described in the issue and the linked Alacritty report. Trace the window-dimension calculations used when returning from simple fullscreen to windowed mode. Done means the restored window height is correct with decorations visible and the existing behavior remains intact otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.