Skip to content

OptionButton popup is displayed on other window when using 2 windows #106655

Open
@gitsomebit

Description

@gitsomebit

Tested versions

v4.4.1.stable.official [49a5bc7]

System information

Godot v4.4.1.stable - Windows 10 - OpenGL 3 (Compatibility)

Issue description

When clicking a OptionButtonin on a second native window the popup is displayed in the main window.

It is also possible to open multiple option buttons by clicking them oneafter another and their popups are all displayed in the other window (see video). The not closing of other popups could be related to #99438

Steps to reproduce

  1. add a window with an OptionButton and items
  2. make the window native and invisible
  3. add a script to popup the second window on ready:
extends Control

@onready var window: Window = $Window

func _ready() -> void:
	window.popup_centered()
  1. click on the OptionButton and realize the popup does not appear
  2. realise the popup did appear, but in the main window

demonstration video of MRP:
https://github.com/user-attachments/assets/69a0828d-4f42-43cb-8002-a040793f84df

Minimal reproduction project (MRP)

OptionButton_bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions