Skip to content

Commit

Permalink
Add window app id on wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Jun 7, 2024
1 parent df3f093 commit 676a594
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions neothesia/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ impl ApplicationHandler<NeothesiaEvent> for NeothesiaBootstrap {
.with_title("Neothesia")
.with_theme(Some(winit::window::Theme::Dark));

#[cfg(all(unix, not(apple)))]
let attributes = {
use winit::platform::wayland::WindowAttributesExtWayland;
attributes.with_name("com.github.polymeilex.neothesia", "main")

Check failure on line 265 in neothesia/src/main.rs

View workflow job for this annotation

GitHub Actions / build_macos

no method named `with_name` found for struct `WindowAttributes` in the current scope
};

let window = event_loop.create_window(attributes).unwrap();

if let Err(err) = set_window_icon(&window) {
Expand Down

0 comments on commit 676a594

Please sign in to comment.