diff options
Diffstat (limited to 'src/api/wayland/context.rs')
-rw-r--r-- | src/api/wayland/context.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/api/wayland/context.rs b/src/api/wayland/context.rs index 9b6fce0..ad0977c 100644 --- a/src/api/wayland/context.rs +++ b/src/api/wayland/context.rs @@ -218,4 +218,11 @@ impl WaylandContext { p.lock().unwrap().remove_handled_surface(sid); } } -}
\ No newline at end of file + + pub fn push_event_for(&self, sid: SurfaceId, evt: Event) { + let mut guard = self.windows_event_queues.lock().unwrap(); + if let Some(queue) = guard.get(&sid) { + queue.lock().unwrap().push_back(evt); + } + } +} |