mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +01:00
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:
parent
b81ec7bed8
commit
704ab19042
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue