1
0
Fork 0
forked from wry/wry

xdg_toplevel: send correct extents in initial configure event

This commit is contained in:
Julian Orth 2024-03-27 13:55:26 +01:00
parent aa296a6aea
commit 112675a813

View file

@ -646,7 +646,8 @@ impl ToplevelNodeBase for XdgToplevel {
impl XdgSurfaceExt for XdgToplevel {
fn initial_configure(self: Rc<Self>) -> Result<(), XdgSurfaceError> {
self.send_configure(0, 0);
let rect = self.xdg.absolute_desired_extents.get();
self.send_configure(rect.width(), rect.height());
Ok(())
}