surface: attach sync sub-surface commits to parent commits
This commit is contained in:
parent
0c48247740
commit
300deecc7d
8 changed files with 268 additions and 52 deletions
|
|
@ -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?;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue