1
0
Fork 0
forked from wry/wry

autocommit 2022-04-28 19:49:51 CEST

This commit is contained in:
Julian Orth 2022-04-28 19:49:51 +02:00
parent bd63f3f5f1
commit 1242a6c1e1
31 changed files with 707 additions and 64 deletions

View file

@ -221,11 +221,7 @@ impl XdgPositioner {
let req: SetConstraintAdjustment = self.client.parse(self, parser)?;
let ca = match CA::from_bits(req.constraint_adjustment) {
Some(c) => c,
_ => {
return Err(XdgPositionerError::UnknownCa(
req.constraint_adjustment,
))
}
_ => return Err(XdgPositionerError::UnknownCa(req.constraint_adjustment)),
};
self.position.borrow_mut().ca = ca;
Ok(())
@ -261,10 +257,7 @@ impl XdgPositioner {
Ok(())
}
fn set_parent_configure(
&self,
parser: MsgParser<'_, '_>,
) -> Result<(), XdgPositionerError> {
fn set_parent_configure(&self, parser: MsgParser<'_, '_>) -> Result<(), XdgPositionerError> {
let req: SetParentConfigure = self.client.parse(self, parser)?;
self.position.borrow_mut().parent_serial = req.serial;
Ok(())