Skip to content

Commit

Permalink
Add some additional macos window attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zkxs committed Jul 2, 2024
1 parent 251e480 commit 1bcbc9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ fn init_window(active_event_loop: &ActiveEventLoop, settings: &mut Settings) ->
.with_skip_taskbar(true)
};

#[cfg(target_os = "macos")] let window_attributes = {
use winit::platform::macos::WindowAttributesExtMacOS;
window_attributes
.with_title_hidden(true)
.with_titlebar_hidden(true)
.with_has_shadow(false)
};

let window = active_event_loop.create_window(window_attributes)
.unwrap();

Expand Down

0 comments on commit 1bcbc9f

Please sign in to comment.