1
0
Fork 0
forked from wry/wry

implement wlr_output_management_unstable_v1

This commit is contained in:
Mostafa Ibrahim 2025-06-03 22:18:53 +03:00 committed by Julian Orth
parent a3c0631f4e
commit c6060a7389
23 changed files with 1349 additions and 32 deletions

View file

@ -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();