fix: always submit output enter event

This commit is contained in:
Nova
2025-08-05 00:28:34 -07:00
parent 8e143f97d4
commit bb0f023040
3 changed files with 14 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ use crate::wayland::{
MessageSink,
core::{
callback::{Callback, WlCallback},
output::Output,
seat::Seat,
},
registry::Registry,
@@ -24,6 +25,7 @@ pub struct Display {
pub message_sink: MessageSink,
pub pid: Option<i32>,
pub seat: OnceLock<Arc<Seat>>,
pub output: OnceLock<Arc<Output>>,
id_counter: CounterU32,
pub creation_time: Instant,
}
@@ -33,6 +35,7 @@ impl Display {
message_sink,
pid,
seat: OnceLock::new(),
output: OnceLock::new(),
id_counter: CounterU32::new(0xff000000), // Start at 0xff000000 to avoid conflicts with client-generated IDs
creation_time: Instant::now(),
}