Skip to content

Windows: Parent of owned child window not visible #2060

@msiglreith

Description

@msiglreith

Declaring one windows as owner will make the owner window invisible which is unintentional and a regression from 0.25.
Seems to be caused by #1933

Minimum example:

fn main() -> anyhow::Result<()> {
    let event_loop = EventLoop::new();

    let owner = WindowBuilder::new()
        .with_title("owner")
        .build(&event_loop)
        .unwrap();

    let child = WindowBuilder::new()
        .with_title("child")
        .with_owner_window(owner.hwnd() as _)
        .build(&event_loop)
        .unwrap();

    event_loop.run(move |event, _, control_flow| {
        *control_flow = ControlFlow::Wait;
    })
}

Metadata

Metadata

Assignees

Labels

B - bugDang, that shouldn't have happenedDS - win32Affects the Win32/Windows backendP - highVital to have

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions