Skip to content

Dialog RFD does not work with winit MACOS #2752

@TimonPost

Description

@TimonPost

I am using RFD and the run_return function. If I open a dialog outside run-return it will open one frame and close directly i.e not block as expected. If I move the dialog into the run_return it stays open.

This behavior used to work on macos pre 0.27, so was wondering if there was a change that broke the behavior. And also it still works on windows!

If I log the FocusManager (link) in RFD, which is used here, I see the following:

Focus manager: false  true  true

With the log:

 log::warn!("Focus manager: {}  {}  {}", app.is_running(), app.get_window().is_some(), app.key_window().is_some());

Indicating the app is not running.

I have my repro example here:

https://github.com/rust-windowing/winit/compare/master...TimonPost:winit:timon/rfd-issue-run-return?expand=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - appkitAffects the AppKit/macOS backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions