1
0
Fork 0
forked from wry/wry

wayland: add capabilities to jay_compositor

This commit is contained in:
Julian Orth 2024-04-19 11:37:48 +02:00
parent c6b189b07d
commit f0600917ff
4 changed files with 43 additions and 0 deletions

View file

@ -74,12 +74,24 @@ impl TestJayCompositor {
self.tran.client_id.set(ClientId::from_raw(ev.client_id));
Ok(())
}
fn handle_seat(&self, parser: MsgParser<'_, '_>) -> Result<(), TestError> {
let _ev = Seat::parse_full(parser)?;
Ok(())
}
fn handle_capabilities(&self, parser: MsgParser<'_, '_>) -> Result<(), TestError> {
let _ev = Capabilities::parse_full(parser)?;
Ok(())
}
}
test_object! {
TestJayCompositor, JayCompositor;
CLIENT_ID => handle_client_id,
SEAT => handle_seat,
CAPABILITIES => handle_capabilities,
}
impl TestObject for TestJayCompositor {}