diff --git a/src/handlers.rs b/src/handlers.rs index 488b7e4..a45d074 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -229,6 +229,16 @@ impl CompositorHandler for State { ) }); } + + // It seems wlcs needs immediate frame sends for client tests to work + #[cfg(feature = "testing")] + unmapped_window.send_frame( + &focused_output, + self.pinnacle.clock.now(), + Some(std::time::Duration::ZERO), + |_, _| None, + ); + self.pinnacle.request_layout(&focused_output); } }