xdg_decoration: send toplevel-configure after configure
This works around a bug in chrome where it fails to start if the first xdg_surface::configure does not contain the toplevel configuration itself.
This commit is contained in:
parent
2af6d29554
commit
a5e17142de
2 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ impl XdgToplevel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn send_current_configure(&self) {
|
pub fn send_current_configure(&self) {
|
||||||
let rect = self.xdg.absolute_desired_extents.get();
|
let rect = self.xdg.absolute_desired_extents.get();
|
||||||
self.send_configure_checked(rect.width(), rect.height());
|
self.send_configure_checked(rect.width(), rect.height());
|
||||||
self.xdg.do_send_configure();
|
self.xdg.do_send_configure();
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ impl ZxdgToplevelDecorationV1 {
|
||||||
Decoration::Server => SERVER_SIDE,
|
Decoration::Server => SERVER_SIDE,
|
||||||
};
|
};
|
||||||
self.send_configure(mode);
|
self.send_configure(mode);
|
||||||
self.toplevel.xdg.do_send_configure();
|
self.toplevel.send_current_configure();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn destroy(&self, parser: MsgParser<'_, '_>) -> Result<(), ZxdgToplevelDecorationV1Error> {
|
fn destroy(&self, parser: MsgParser<'_, '_>) -> Result<(), ZxdgToplevelDecorationV1Error> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue