wayland: update wl_output to v4
This commit is contained in:
parent
9812a02f87
commit
913b9d7213
1 changed files with 12 additions and 1 deletions
|
|
@ -190,6 +190,9 @@ impl WlOutputGlobal {
|
||||||
if obj.version >= SEND_SCALE_SINCE {
|
if obj.version >= SEND_SCALE_SINCE {
|
||||||
obj.send_scale();
|
obj.send_scale();
|
||||||
}
|
}
|
||||||
|
if obj.version >= SEND_NAME_SINCE {
|
||||||
|
obj.send_name();
|
||||||
|
}
|
||||||
if obj.version >= SEND_DONE_SINCE {
|
if obj.version >= SEND_DONE_SINCE {
|
||||||
obj.send_done();
|
obj.send_done();
|
||||||
}
|
}
|
||||||
|
|
@ -268,7 +271,7 @@ impl Global for WlOutputGlobal {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn version(&self) -> u32 {
|
fn version(&self) -> u32 {
|
||||||
3
|
4
|
||||||
}
|
}
|
||||||
|
|
||||||
fn break_loops(&self) {
|
fn break_loops(&self) {
|
||||||
|
|
@ -289,6 +292,7 @@ pub struct WlOutput {
|
||||||
|
|
||||||
pub const SEND_DONE_SINCE: u32 = 2;
|
pub const SEND_DONE_SINCE: u32 = 2;
|
||||||
pub const SEND_SCALE_SINCE: u32 = 2;
|
pub const SEND_SCALE_SINCE: u32 = 2;
|
||||||
|
pub const SEND_NAME_SINCE: u32 = 4;
|
||||||
|
|
||||||
impl WlOutput {
|
impl WlOutput {
|
||||||
fn send_geometry(&self) {
|
fn send_geometry(&self) {
|
||||||
|
|
@ -327,6 +331,13 @@ impl WlOutput {
|
||||||
self.client.event(event);
|
self.client.event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn send_name(&self) {
|
||||||
|
self.client.event(Name {
|
||||||
|
self_id: self.id,
|
||||||
|
name: &self.global.connector.name,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
pub fn send_done(&self) {
|
pub fn send_done(&self) {
|
||||||
let event = Done { self_id: self.id };
|
let event = Done { self_id: self.id };
|
||||||
self.client.event(event);
|
self.client.event(event);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue