Open Andrew15-5 opened 1 week ago
You can pass a WindowBuilder
to the config using Config::with_window()
.
The WindowBuilder
lets you configure whether you want the window to always be on top (https://docs.rs/tao/latest/tao/window/struct.WindowBuilder.html#method.with_always_on_top).
They mean for the CLI. It had a new feature that keeps the desktop window always on top while running in dev mode.
I think it's a new version of Dioxus and not dx
.
The WindowBuilder
method can serve as a workaround.
Feature Request
The "always on top" feature is blocking the file choose window (
<input type="file">
), which is supposed to be a part of the app. So not only it blocks other dev windows (editor,dx
andtailwind
commands), but also itself. And when moving to the virtual desktop with that window and an editor, it will always refocus on that window, instead of the previously focused editor, which is just not a great DX, to put it mildly.Implement Suggestion
Probably a toggle either in the
Dioxus.toml
file or in thedioxus::desktop::Config::new()
.