ping pong

This commit is contained in:
2025-04-24 01:52:15 -07:00
parent 0be889b758
commit 1e7676ddb7
2 changed files with 29 additions and 4 deletions

View File

@@ -67,6 +67,9 @@ impl WlClient {
else if self.shm_id.is_some() && header.object == self.shm_id.unwrap() && header.opcode == 0 { // wl_shm::format
WlClient::wl_shm_format(&event);
}
else if self.xdg_wm_base_id.is_some() && header.object == self.xdg_wm_base_id.unwrap() && header.opcode == 0 { // xdg_wm_base::ping
self.xdg_wm_base_pong(&event)?;
}
else {
println!(
"Received event:\n\tObject: {}\n\tOpcode: {}\n\tSize: {}",