1
0
Fork 0
forked from wry/wry

it: test toplevel drag

This commit is contained in:
Julian Orth 2024-04-03 16:52:31 +02:00
parent d4f49bf947
commit 660fa92659
11 changed files with 182 additions and 4 deletions

View file

@ -7,7 +7,7 @@ use {
testrun::ParseFull,
},
utils::{buffd::MsgParser, clonecell::CloneCell},
wire::{wl_pointer::*, WlPointerId},
wire::{wl_pointer::*, WlPointerId, WlSurfaceId},
},
std::{cell::Cell, rc::Rc},
};
@ -35,14 +35,14 @@ impl TestPointer {
pub fn set_cursor(
&self,
serial: u32,
surface: &TestSurface,
surface: Option<&TestSurface>,
hotspot_x: i32,
hotspot_y: i32,
) -> TestResult {
self.tran.send(SetCursor {
self_id: self.id,
serial,
surface: surface.id,
surface: surface.map(|s| s.id).unwrap_or(WlSurfaceId::NONE),
hotspot_x,
hotspot_y,
})?;