srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/winit/nested_platform.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wayland/src/winit/nested_platform.rs')
-rw-r--r--crates/wayland/src/winit/nested_platform.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/wayland/src/winit/nested_platform.rs b/crates/wayland/src/winit/nested_platform.rs
index 330ef91..316b1b5 100644
--- a/crates/wayland/src/winit/nested_platform.rs
+++ b/crates/wayland/src/winit/nested_platform.rs
@@ -102,6 +102,10 @@ impl Platform for WaylandPlatform {
fn apply_geometry(&mut self, window: WindowId, geometry: srdwm_core::Rect) -> PlatformResult<()> {
let _ = geometry;
self.state.sync_geometry(window);
+ // See `udev/platform.rs`'s own `apply_geometry` doc comment - same
+ // gap (the cached border/titlebar bitmap only rebuilds on a commit,
+ // focus change, or a few specific paths, not this one), same fix.
+ self.state.redraw_decoration_buffer(window);
Ok(())
}
@@ -126,6 +130,7 @@ impl Platform for WaylandPlatform {
fn restore(&mut self, window: WindowId) -> PlatformResult<()> {
self.state.sync_geometry(window);
+ self.state.redraw_decoration_buffer(window);
Ok(())
}