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

@ -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,