1
0
Fork 0
forked from wry/wry

surface: attach sync sub-surface commits to parent commits

This commit is contained in:
Julian Orth 2024-03-20 19:41:43 +01:00
parent 0c48247740
commit 300deecc7d
8 changed files with 268 additions and 52 deletions

View file

@ -37,6 +37,7 @@ async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
buffer.fill(Color::from_rgba_straight(255, 255, 255, 255));
child.attach(buffer.id)?;
child.commit()?;
parent.map().await?;
@ -45,10 +46,12 @@ async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
client.compare_screenshot("1").await?;
sub.place_below(parent.surface.id)?;
child.commit()?;
parent.map().await?;
client.compare_screenshot("2").await?;
sub.place_above(parent.surface.id)?;
child.commit()?;
parent.map().await?;
client.compare_screenshot("1").await?;

View file

@ -29,6 +29,7 @@ async fn test(run: Rc<TestRun>) -> TestResult {
nss.set_position(100, 100)?;
let buffer = client.shm.create_buffer(100, 100)?;
ns.attach(buffer.id)?;
ns.commit()?;
run.cfg.set_fullscreen(ds.seat.id(), true)?;
client.sync().await;