1
0
Fork 0
forked from wry/wry

wayland: implement tablet-v2

This commit is contained in:
Julian Orth 2024-05-01 00:09:16 +02:00
parent 86e283d255
commit 7ed499eabd
62 changed files with 5174 additions and 318 deletions

View file

@ -2,7 +2,8 @@ use {
crate::{
backend::ConnectorId,
cursor::KnownCursor,
ifs::wl_seat::{NodeSeatState, WlSeatGlobal},
fixed::Fixed,
ifs::wl_seat::{tablet::TabletTool, NodeSeatState, WlSeatGlobal},
rect::Rect,
renderer::Renderer,
state::State,
@ -142,4 +143,14 @@ impl Node for DisplayNode {
// log::info!("display focus");
seat.pointer_cursor().set_known(KnownCursor::Default);
}
fn node_on_tablet_tool_enter(
self: Rc<Self>,
tool: &Rc<TabletTool>,
_time_usec: u64,
_x: Fixed,
_y: Fixed,
) {
tool.cursor().set_known(KnownCursor::Default)
}
}