mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-09 21:28:22 +02:00
tablet: move tablet_get_current_tool up for future needs
This commit is contained in:
parent
27a66310fc
commit
a18bb8e411
1 changed files with 12 additions and 12 deletions
|
|
@ -1312,6 +1312,18 @@ tablet_get_tool(struct tablet_dispatch *tablet,
|
|||
return tool;
|
||||
}
|
||||
|
||||
static struct libinput_tablet_tool *
|
||||
tablet_get_current_tool(struct tablet_dispatch *tablet)
|
||||
{
|
||||
if (tablet->current_tool.type == LIBINPUT_TOOL_NONE)
|
||||
return NULL;
|
||||
|
||||
return tablet_get_tool(tablet,
|
||||
tablet->current_tool.type,
|
||||
tablet->current_tool.id,
|
||||
tablet->current_tool.serial);
|
||||
}
|
||||
|
||||
static void
|
||||
tablet_notify_button_mask(struct tablet_dispatch *tablet,
|
||||
struct evdev_device *device,
|
||||
|
|
@ -2061,18 +2073,6 @@ tablet_update_tool_state(struct tablet_dispatch *tablet,
|
|||
return false;
|
||||
}
|
||||
|
||||
static struct libinput_tablet_tool *
|
||||
tablet_get_current_tool(struct tablet_dispatch *tablet)
|
||||
{
|
||||
if (tablet->current_tool.type == LIBINPUT_TOOL_NONE)
|
||||
return NULL;
|
||||
|
||||
return tablet_get_tool(tablet,
|
||||
tablet->current_tool.type,
|
||||
tablet->current_tool.id,
|
||||
tablet->current_tool.serial);
|
||||
}
|
||||
|
||||
static void
|
||||
tablet_flush(struct tablet_dispatch *tablet,
|
||||
struct evdev_device *device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue