Send immediate frame when testing

It seems wlcs only sends one frame request, so we need to send that frame immediately
This commit is contained in:
Ottatop 2024-06-13 17:20:02 -05:00
parent b81ec7bed8
commit 704ab19042

View file

@ -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); self.pinnacle.request_layout(&focused_output);
} }
} }