godotengine / godotengine/godot

Unable to set force native window property on visible window in scene

Open
#103,161 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducable in 4.3 stable

### System information

Godot v4.3.stable (77dcf97) - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 31.0.15.3820) - Intel(R) Core(TM) i9-14900HX (32 Threads)

### Issue description

Setting the force native propperty on a window, while it being visible in the scene and then starting the game gives an error. I have to work around this by connecting the ready signal to popup

### Steps to reproduce

Open the mrp and set the window to visible

### Minimal reproduction project (MRP)

Quick notes on the mrp, I added the exact same window twice, once as a built in one and once as an os one. The os one has the ready signal connected to it as a workaround for the issue.

[window-mrp.zip](https://github.com/user-attachments/files/18922557/window-mrp.zip)

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 with the linked window-mrp.zip and reproduce the error in Godot 4.3 on Windows by making the window visible before starting the game. Compare the built-in window with the OS window and its ready-signal workaround; done means the force native property works on a visible window without requiring that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
godot
Domain
desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.