mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
rename wlr_tablet_tool to wlr_tablet
The previous naming was based on the input-device capability names from libinput. With code that uses the libinput_tablet_tool and mapping into tablet-v2, this is confusing, so the name is changed to follow the names used in the protocol.
This commit is contained in:
parent
b84288af16
commit
d9e978e1b3
15 changed files with 93 additions and 91 deletions
|
|
@ -103,7 +103,7 @@ static void handle_touch_motion(struct wl_listener *listener, void *data) {
|
|||
|
||||
static void handle_tablet_tool_position(struct roots_cursor *cursor,
|
||||
struct roots_tablet_tool *tool,
|
||||
struct wlr_tablet_tool_tool *tool_tool,
|
||||
struct wlr_tablet_tool *tool_tool,
|
||||
bool change_x, bool change_y,
|
||||
double x, double y, double dx, double dy) {
|
||||
if (!change_x && !change_y) {
|
||||
|
|
@ -264,7 +264,7 @@ static void handle_tool_proximity(struct wl_listener *listener, void *data) {
|
|||
wlr_idle_notify_activity(desktop->idle, cursor->seat->seat);
|
||||
struct wlr_event_tablet_tool_proximity *event = data;
|
||||
|
||||
struct wlr_tablet_tool_tool *tool = event->tool;
|
||||
struct wlr_tablet_tool *tool = event->tool;
|
||||
if (!tool->data) {
|
||||
struct roots_tablet_tool_tool *roots_tool =
|
||||
calloc(1, sizeof(struct roots_tablet_tool_tool));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue