1
0
Fork 0
forked from wry/wry

autocommit 2022-02-06 20:12:09 CET

This commit is contained in:
Julian Orth 2022-02-06 20:12:09 +01:00
parent 3f50b0c75e
commit 96038f49bc
18 changed files with 60 additions and 90 deletions

View file

@ -228,7 +228,7 @@ impl XdgSurface {
self.surface.client.protocol_error(
&**self,
ALREADY_CONSTRUCTED,
format!(
&format!(
"wl_surface {} already has an assigned xdg_toplevel",
self.surface.id
),
@ -253,7 +253,7 @@ impl XdgSurface {
self.surface.client.protocol_error(
&**self,
ALREADY_CONSTRUCTED,
format!(
&format!(
"wl_surface {} already has an assigned xdg_popup",
self.surface.id
),

View file

@ -150,11 +150,12 @@ impl XdgToplevel {
}
fn send_configure(&self, width: i32, height: i32) {
self.xdg.surface.client.event(ConfigureOut {
let states: Vec<_> = self.states.borrow().iter().copied().collect();
self.xdg.surface.client.event(Configure {
self_id: self.id,
width,
height,
states: self.states.borrow().iter().copied().collect(),
states: &states,
})
}
@ -185,12 +186,12 @@ impl XdgToplevel {
}
fn set_title(&self, parser: MsgParser<'_, '_>) -> Result<(), SetTitleError> {
let _req: SetTitleIn = self.xdg.surface.client.parse(self, parser)?;
let _req: SetTitle = self.xdg.surface.client.parse(self, parser)?;
Ok(())
}
fn set_app_id(&self, parser: MsgParser<'_, '_>) -> Result<(), SetAppIdError> {
let req: SetAppIdIn = self.xdg.surface.client.parse(self, parser)?;
let req: SetAppId = self.xdg.surface.client.parse(self, parser)?;
self.bugs.set(bugs::get(req.app_id));
Ok(())
}