Skip to content

Commit

Permalink
remove startup notify for initial window, ref rust-windowing/winit#3633
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Apr 28, 2024
1 parent 07fbbfb commit f685471
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontends/rioterm/src/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,6 @@ impl RouteWindow {
#[allow(unused_mut)]
let mut window_builder = create_window_builder("Rio", config, None);

#[cfg(not(any(target_os = "macos", windows)))]
if let Some(token) = event_loop.read_token_from_env() {
log::debug!("Activating window with token: {token:?}");
window_builder = window_builder.with_activation_token(token);

// Remove the token from the env.
startup_notify::reset_activation_token_env();
}

#[allow(deprecated)]
let winit_window = event_loop.create_window(window_builder).unwrap();
let winit_window = configure_window(winit_window, config);
Expand Down

0 comments on commit f685471

Please sign in to comment.