Skip to content

Commit

Permalink
Revert "Hide app item on macOS dock"
Browse files Browse the repository at this point in the history
This reverts commit 713cb0e.
  • Loading branch information
Exidex committed Aug 3, 2024
1 parent 411e379 commit 90f068f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions winit/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,9 @@ where
let mut debug = Debug::new();
debug.startup_started();

let mut event_loop_builder = EventLoopBuilder::with_user_event();

#[cfg(target_os = "macos")]
use winit::platform::macos::{EventLoopBuilderExtMacOS, ActivationPolicy};

#[cfg(target_os = "macos")]
let event_loop_builder = event_loop_builder
.with_activation_policy(ActivationPolicy::Accessory) // hide app icon from macos dock
.with_activate_ignoring_other_apps(false); // when used with ActivationPolicy::Accessory, fixes issue when windows is not focused when opened

let event_loop = event_loop_builder
let event_loop = EventLoopBuilder::with_user_event()
.build()
.expect("Create event loop");

let proxy = event_loop.create_proxy();

let runtime = {
Expand Down

0 comments on commit 90f068f

Please sign in to comment.