-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] always_on_bottom
fails to set window to bottom when created on Windows
#9597
Comments
always_on_bottom
fails to set window to bottom when created on Windows
you need to pair it with |
Thanks! That indeed works, but the window still flickers upon creation. Does that have a solution? |
Not sure what flicker you mean, can you show a video? |
Sorry my screen recording software can only capture one app so I have to use my phone: screen-recording.mp4 |
Sorry @amrbashir, fn main() {
tauri::Builder::default()
.setup(|app| {
let main = WebviewWindowBuilder::new(app, "main", WebviewUrl::App("index.html".into()))
.maximized(true) // causes the flickering
.always_on_bottom(true)
.focused(false)
.build()?;
sleep(Duration::from_secs(2));
main.set_ignore_cursor_events(true)?; // some unexpected motions
sleep(Duration::from_secs(2));
main.set_ignore_cursor_events(false)?; // same as above
Ok(())
})
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
} Please let me know if you cannot reproduce. |
Describe the bug
Transferred from Discord.
On Windows, always on bottom fails to set the window to bottom when it is initially created. Afterwards it works fine. Alternatively if one further sets
.visible(false)
then show it later, it will be automatically on the bottom but there is sometimes a flickering.Reproduction
Create an app with
create-tauri-app
and changesrc-tauri/src/main.rs
to:With the above the window is not initially on bottom. Then try
This will set the window initially to the bottom, but sometimes there is a flickering.
Expected behavior
.always_on_bottom(true)
should initially set the window to bottom, without using the trick.Full
tauri info
outputThe text was updated successfully, but these errors were encountered: