xdg_toplevel: send correct extents in initial configure event
This commit is contained in:
parent
aa296a6aea
commit
112675a813
1 changed files with 2 additions and 1 deletions
|
|
@ -646,7 +646,8 @@ impl ToplevelNodeBase for XdgToplevel {
|
||||||
|
|
||||||
impl XdgSurfaceExt for XdgToplevel {
|
impl XdgSurfaceExt for XdgToplevel {
|
||||||
fn initial_configure(self: Rc<Self>) -> Result<(), XdgSurfaceError> {
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue