diff --git a/src/it/test_ifs.rs b/src/it/test_ifs.rs
index 8948b0ec..eb2d633b 100644
--- a/src/it/test_ifs.rs
+++ b/src/it/test_ifs.rs
@@ -35,6 +35,8 @@ pub mod test_surface;
pub mod test_syncobj_manager;
pub mod test_syncobj_surface;
pub mod test_syncobj_timeline;
+pub mod test_toplevel_drag;
+pub mod test_toplevel_drag_manager;
pub mod test_viewport;
pub mod test_viewporter;
pub mod test_xdg_activation;
diff --git a/src/it/test_ifs/test_pointer.rs b/src/it/test_ifs/test_pointer.rs
index e0f6fe54..e602316e 100644
--- a/src/it/test_ifs/test_pointer.rs
+++ b/src/it/test_ifs/test_pointer.rs
@@ -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,
})?;
diff --git a/src/it/test_ifs/test_registry.rs b/src/it/test_ifs/test_registry.rs
index 1e8c917d..8428e2f3 100644
--- a/src/it/test_ifs/test_registry.rs
+++ b/src/it/test_ifs/test_registry.rs
@@ -13,6 +13,7 @@ use {
test_jay_compositor::TestJayCompositor, test_shm::TestShm,
test_single_pixel_buffer_manager::TestSinglePixelBufferManager,
test_subcompositor::TestSubcompositor, test_syncobj_manager::TestSyncobjManager,
+ test_toplevel_drag_manager::TestToplevelDragManager,
test_viewporter::TestViewporter, test_xdg_activation::TestXdgActivation,
test_xdg_base::TestXdgWmBase,
},
@@ -48,6 +49,7 @@ pub struct TestRegistrySingletons {
pub wp_content_type_manager_v1: u32,
pub zwlr_data_control_manager_v1: u32,
pub zwp_linux_dmabuf_v1: u32,
+ pub xdg_toplevel_drag_manager_v1: u32,
}
pub struct TestRegistry {
@@ -70,6 +72,7 @@ pub struct TestRegistry {
pub content_type_manager: CloneCell