it: test toplevel drag
This commit is contained in:
parent
d4f49bf947
commit
660fa92659
11 changed files with 182 additions and 4 deletions
|
|
@ -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,
|
||||
})?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue