1
0
Fork 0
forked from wry/wry

xdg-shell: make acked serial part of the pending state

This commit is contained in:
Julian Orth 2025-09-19 12:27:42 +02:00
parent c9f54cd60b
commit 17ac4ca0e1
7 changed files with 85 additions and 36 deletions

View file

@ -15,7 +15,9 @@ pub struct TestWindow {
impl TestWindow {
pub async fn map(&self) -> Result<(), TestError> {
self.xdg.ack_configure(self.xdg.last_serial.get())?;
if let Some(serial) = self.xdg.last_serial.take() {
self.xdg.ack_configure(serial)?;
}
self.surface
.map(self.tl.core.width.get(), self.tl.core.height.get())
.await?;