implement wlr_output_management_unstable_v1
This commit is contained in:
parent
a3c0631f4e
commit
c6060a7389
23 changed files with 1349 additions and 32 deletions
|
|
@ -11,7 +11,6 @@ use {
|
|||
};
|
||||
|
||||
pub const NAME_SINCE: Version = Version(2);
|
||||
#[expect(dead_code)]
|
||||
pub const DESCRIPTION_SINCE: Version = Version(2);
|
||||
pub const NO_DONE_SINCE: Version = Version(3);
|
||||
|
||||
|
|
@ -53,7 +52,6 @@ impl ZxdgOutputV1 {
|
|||
});
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn send_description(&self, description: &str) {
|
||||
self.client.event(Description {
|
||||
self_id: self.id,
|
||||
|
|
@ -71,6 +69,9 @@ impl ZxdgOutputV1 {
|
|||
if self.version >= NAME_SINCE {
|
||||
self.send_name(&global.connector.name);
|
||||
}
|
||||
if self.version >= DESCRIPTION_SINCE {
|
||||
self.send_description(&global.connector.description.borrow());
|
||||
}
|
||||
if self.version >= NO_DONE_SINCE {
|
||||
if self.output.version >= SEND_DONE_SINCE {
|
||||
self.output.send_done();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue