From a5e17142decd652e416f1e7faa38cf78d9753134 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 10 Oct 2022 19:00:39 +0200 Subject: [PATCH] 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. --- src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs | 2 +- src/ifs/zxdg_toplevel_decoration_v1.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs index 7ed7f77d..0965db63 100644 --- a/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs +++ b/src/ifs/wl_surface/xdg_surface/xdg_toplevel.rs @@ -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(); self.send_configure_checked(rect.width(), rect.height()); self.xdg.do_send_configure(); diff --git a/src/ifs/zxdg_toplevel_decoration_v1.rs b/src/ifs/zxdg_toplevel_decoration_v1.rs index 5b65738b..a8afdaba 100644 --- a/src/ifs/zxdg_toplevel_decoration_v1.rs +++ b/src/ifs/zxdg_toplevel_decoration_v1.rs @@ -48,7 +48,7 @@ impl ZxdgToplevelDecorationV1 { Decoration::Server => SERVER_SIDE, }; self.send_configure(mode); - self.toplevel.xdg.do_send_configure(); + self.toplevel.send_current_configure(); } fn destroy(&self, parser: MsgParser<'_, '_>) -> Result<(), ZxdgToplevelDecorationV1Error> {