wayland: add capabilities to jay_compositor
This commit is contained in:
parent
c6b189b07d
commit
f0600917ff
4 changed files with 43 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use {
|
||||
crate::{
|
||||
ifs::jay_compositor::Cap,
|
||||
utils::{
|
||||
buffd::{MsgParser, MsgParserError},
|
||||
clonecell::CloneCell,
|
||||
|
|
@ -126,6 +127,17 @@ impl UsrJayCompositor {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn capabilities(&self, parser: MsgParser<'_, '_>) -> Result<(), MsgParserError> {
|
||||
let ev: Capabilities = self.con.parse(self, parser)?;
|
||||
for &cap in ev.cap {
|
||||
match cap {
|
||||
Cap::NONE => {}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
usr_object_base! {
|
||||
|
|
@ -133,6 +145,7 @@ usr_object_base! {
|
|||
|
||||
CLIENT_ID => client_id,
|
||||
SEAT => seat,
|
||||
CAPABILITIES => capabilities,
|
||||
}
|
||||
|
||||
impl UsrObject for UsrJayCompositor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue