Skip to content

Focusing text Control (e.g. TextEdit) maximizes game window in certain scenario #105943

@mh114

Description

@mh114

Tested versions

  • Reproducible in 4.4.1.stable (Linux)
  • Reproducible in v4.2.2.stable (Linux)
  • Didn't seem to happen in Windows on my actual project (haven't tried MRP on Windows), so may be related to Linux window manager in use (I'm on Linux Mint Cinnamon, X11)

System information

Godot v4.4.1.stable - Linux Mint 22.1 (Xia) on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4060 Ti (nvidia; 570.144) - AMD Ryzen 7 7700X 8-Core Processor (16 threads)

Issue description

Noticed a strange issue that has quite a specific scenario where it happens. I'm working on a tool app. When I maximize the window and restore it back ("un-maximize"), and then click/focus a text field (such as TextEdit or LineEdit), Godot suddenly maximizes the window again for no apparent reason.

Steps to reproduce

Open main.tscn, run the app. NOTE: "Embedded game view" must be disabled.

  1. Maximize the window (for me double clicking on title bar works, also the Maximize-button)
  2. Restore the window (un-maximize)
  3. Click on text fields (or focus with Tab)
    • Window goes back to maximized state!
    • Does not happen always, but most of the time.
  4. Do steps 1 and 2, but click on the button
    • Nothing happens, works as intended.

Interestingly, if the window is moved after step 2, clicking on a text field will not trigger the bug.

Minimal reproduction project (MRP)

maximize_bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions