From 56e6ad89537832bb944b6442a14a72a4d904a99d Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 2 Aug 2022 11:54:14 +0200 Subject: [PATCH] compositor: Schedule a new render after commit --- src/wayland/handlers/compositor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wayland/handlers/compositor.rs b/src/wayland/handlers/compositor.rs index ae74ac5f..f79e3a49 100644 --- a/src/wayland/handlers/compositor.rs +++ b/src/wayland/handlers/compositor.rs @@ -206,6 +206,11 @@ impl CompositorHandler for State { }) { layer_map_for_output(output).arrange(dh); } + + // schedule a new render + for output in self.common.shell.outputs_for_surface(surface) { + self.backend.schedule_render(&self.common.event_loop_handle, &output); + } } }