wayland: add capabilities to jay_compositor
This commit is contained in:
parent
c6b189b07d
commit
f0600917ff
4 changed files with 43 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ impl JayCompositorGlobal {
|
|||
});
|
||||
track!(client, obj);
|
||||
client.add_client_obj(&obj)?;
|
||||
obj.send_capabilities();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
@ -72,7 +73,20 @@ pub struct JayCompositor {
|
|||
tracker: Tracker<Self>,
|
||||
}
|
||||
|
||||
pub struct Cap;
|
||||
|
||||
impl Cap {
|
||||
pub const NONE: u16 = 0;
|
||||
}
|
||||
|
||||
impl JayCompositor {
|
||||
fn send_capabilities(&self) {
|
||||
self.client.event(Capabilities {
|
||||
self_id: self.id,
|
||||
cap: &[Cap::NONE],
|
||||
});
|
||||
}
|
||||
|
||||
fn take_screenshot_impl(
|
||||
&self,
|
||||
id: JayScreenshotId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue