cosmic-comp/src/wayland/handlers/tablet_manager.rs

16 lines
485 B
Rust
Raw Normal View History

2023-12-28 13:36:59 -08:00
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
2024-04-08 16:55:41 -07:00
use smithay::{
backend::input::TabletToolDescriptor, input::pointer::CursorImageStatus,
input::tablet::TabletSeatHandler, reexports::wayland_server::protocol::wl_surface,
2024-04-08 16:55:41 -07:00
};
impl TabletSeatHandler for State {
type ToolFocus = wl_surface::WlSurface;
2024-04-08 16:55:41 -07:00
fn tablet_tool_image(&mut self, _tool: &TabletToolDescriptor, _image: CursorImageStatus) {
// TODO display cursor for each tablet tool
}
}