surface: process offset request without a buffer change
This commit is contained in:
parent
adf6d2ae2b
commit
9cddeb964d
9 changed files with 98 additions and 11 deletions
|
|
@ -2,8 +2,9 @@ use {
|
|||
crate::{
|
||||
ifs::wl_seat::wl_pointer::WlPointer,
|
||||
it::{
|
||||
test_error::TestResult, test_object::TestObject, test_transport::TestTransport,
|
||||
test_utils::test_expected_event::TEEH, testrun::ParseFull,
|
||||
test_error::TestResult, test_ifs::test_surface::TestSurface, test_object::TestObject,
|
||||
test_transport::TestTransport, test_utils::test_expected_event::TEEH,
|
||||
testrun::ParseFull,
|
||||
},
|
||||
utils::{buffd::MsgParser, clonecell::CloneCell},
|
||||
wire::{wl_pointer::*, WlPointerId},
|
||||
|
|
@ -30,6 +31,23 @@ impl TestPointer {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn set_cursor(
|
||||
&self,
|
||||
serial: u32,
|
||||
surface: &TestSurface,
|
||||
hotspot_x: i32,
|
||||
hotspot_y: i32,
|
||||
) -> TestResult {
|
||||
self.tran.send(SetCursor {
|
||||
self_id: self.id,
|
||||
serial,
|
||||
surface: surface.id,
|
||||
hotspot_x,
|
||||
hotspot_y,
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn handle_enter(&self, parser: MsgParser<'_, '_>) -> TestResult {
|
||||
let ev = Enter::parse_full(parser)?;
|
||||
self.enter.push(ev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue