Skip to content

Commit

Permalink
Merge pull request #2211 from MrAntix/windows_PlatformSpecific_skip_t…
Browse files Browse the repository at this point in the history
…askbar

feat(window): adds skip_taskbar for windows
  • Loading branch information
hecrj authored Jan 22, 2024
2 parents b544c90 + 9cfb0f4 commit a1114ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/window/settings/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ pub struct PlatformSpecific {

/// Drag and drop support
pub drag_and_drop: bool,

/// Whether show or hide the window icon in the taskbar.
pub skip_taskbar: bool,
}

impl Default for PlatformSpecific {
fn default() -> Self {
Self {
parent: None,
drag_and_drop: true,
skip_taskbar: false,
}
}
}
3 changes: 3 additions & 0 deletions winit/src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ pub fn window_settings(
}
window_builder = window_builder
.with_drag_and_drop(settings.platform_specific.drag_and_drop);

window_builder = window_builder
.with_skip_taskbar(settings.platform_specific.skip_taskbar);
}

#[cfg(target_os = "macos")]
Expand Down

0 comments on commit a1114ca

Please sign in to comment.