parent
0a5dddacfd
commit
d3a46b7c8a
8 changed files with 263 additions and 48 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use crate::server::{ObjectEvent, ObjectKey};
|
||||
use std::os::unix::net::UnixStream;
|
||||
use std::sync::mpsc;
|
||||
use wayland_client::protocol::{
|
||||
wl_buffer::WlBuffer, wl_callback::WlCallback, wl_compositor::WlCompositor,
|
||||
wl_keyboard::WlKeyboard, wl_output::WlOutput, wl_pointer::WlPointer, wl_region::WlRegion,
|
||||
|
|
@ -156,19 +155,6 @@ impl Dispatch<WlCallback, server::wl_callback::WlCallback> for Globals {
|
|||
}
|
||||
}
|
||||
|
||||
impl Dispatch<WlOutput, mpsc::Sender<Event<WlOutput>>> for Globals {
|
||||
fn event(
|
||||
_: &mut Self,
|
||||
_: &WlOutput,
|
||||
event: <WlOutput as Proxy>::Event,
|
||||
data: &mpsc::Sender<Event<WlOutput>>,
|
||||
_: &Connection,
|
||||
_: &QueueHandle<Self>,
|
||||
) {
|
||||
let _ = data.send(event);
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! push_events {
|
||||
($type:ident) => {
|
||||
impl Dispatch<$type, ObjectKey> for Globals {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue