cleanup: add session lock import to prelude
- Add `SessionLockWindow` and `SessionLockEvent` to `bevy_wayland::prelude::*`
This commit is contained in:
@@ -1,16 +1,9 @@
|
|||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
color::palettes::basic::*,
|
|
||||||
prelude::*,
|
prelude::*,
|
||||||
window::{exit_on_all_closed, WindowCreated, WindowRef, WindowResolution},
|
window::{exit_on_all_closed, WindowRef},
|
||||||
winit::WinitPlugin,
|
winit::WinitPlugin,
|
||||||
};
|
};
|
||||||
use bevy_wayland::{
|
use bevy_wayland::prelude::*;
|
||||||
layer_shell::LayerShellSettings,
|
|
||||||
session_lock::{SessionLockEvent, SessionLockWindow},
|
|
||||||
WaylandPlugin,
|
|
||||||
};
|
|
||||||
use smithay_client_toolkit::shell::wlr_layer::{Anchor, Layer};
|
use smithay_client_toolkit::shell::wlr_layer::{Anchor, Layer};
|
||||||
|
|
||||||
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
|
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
|
||||||
|
|||||||
+3
-2
@@ -5,7 +5,7 @@ use smithay_client_toolkit::{
|
|||||||
reexports::{
|
reexports::{
|
||||||
calloop::EventLoop,
|
calloop::EventLoop,
|
||||||
calloop_wayland_source::WaylandSource,
|
calloop_wayland_source::WaylandSource,
|
||||||
client::{Connection, globals::registry_queue_init},
|
client::{globals::registry_queue_init, Connection},
|
||||||
},
|
},
|
||||||
registry::{ProvidesRegistryState, RegistryState},
|
registry::{ProvidesRegistryState, RegistryState},
|
||||||
registry_handlers,
|
registry_handlers,
|
||||||
@@ -20,9 +20,10 @@ pub mod session_lock;
|
|||||||
mod surface_handler;
|
mod surface_handler;
|
||||||
|
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
pub use crate::WaylandPlugin;
|
|
||||||
pub use crate::input_region::InputRegion;
|
pub use crate::input_region::InputRegion;
|
||||||
pub use crate::layer_shell::{LayerShellSettings, LayerShellWindowSize};
|
pub use crate::layer_shell::{LayerShellSettings, LayerShellWindowSize};
|
||||||
|
pub use crate::session_lock::{SessionLockEvent, SessionLockWindow};
|
||||||
|
pub use crate::WaylandPlugin;
|
||||||
pub use smithay_client_toolkit::shell::wlr_layer::{Anchor, KeyboardInteractivity, Layer};
|
pub use smithay_client_toolkit::shell::wlr_layer::{Anchor, KeyboardInteractivity, Layer};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user