Skip to content

Root window gets smaller after minimizing with a (big enough) max_size set. #79754

@ghost

Description

Godot version

v4.1.1.stable.official.bd6af8e0e

System information

Windows 10.0.19045 - Vulkan (Compatibility) - GeForce GT 540M- Intel Core i7-2670QM CPU @ 2.20GHz (8 Threads)

Issue description

Setting max_size property on the root window causes it to resize after minimizing it to task bar and bringing back.
In the following example the set max size is the size of the whole recorded screen, so it shouldn't interfere with the size of the window.

Screen-Recording.mp4

Steps to reproduce

  1. Use the minimal reproduction project.
  2. Run the project.
  3. Minimize the window by manually clicking minimize on its menu bar.
  4. Bring back the window by clicking it on the task bar.
  5. Observe that the size of the window is smaller than before.

Minimal reproduction project

Window-Size-Changes-Test-4.1.1.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions