feat: rudimentary implementation with Layer Shell

This commit is contained in:
Naman Agrawal
2025-08-20 17:46:35 +05:30
parent 64508506d1
commit 93b879c937
9 changed files with 5857 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
use bevy::{prelude::*, winit::WinitPlugin};
use bevy_wayland::{layer_shell::LayerShellWindow, WaylandPlugin};
fn main() {
App::new()
.add_plugins((
DefaultPlugins.build().disable::<WinitPlugin>(),
WaylandPlugin,
))
.add_systems(Startup, setup)
.run();
}
fn setup(mut commands: Commands, windows: Query<Entity, With<Window>>) {
for entity in &windows {
commands.entity(entity).insert(LayerShellWindow::default());
}
}