aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-06-16 11:19:48 +0200
committerMarkus Ongyerth <ongy@ongy.net>2018-07-14 09:49:58 +0200
commitd9e978e1b379c811c47f4b3b75f1ec186a640ff7 (patch)
tree7c543e492c4baced055592702c8cf3399fd79947 /backend/headless
parentb84288af16f56295a66d58bdb41b7ba7c4dd54f3 (diff)
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.
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/input_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c
index e0411c27..a2474aeb 100644
--- a/backend/headless/input_device.c
+++ b/backend/headless/input_device.c
@@ -60,12 +60,12 @@ struct wlr_input_device *wlr_headless_add_input_device(
wlr_touch_init(wlr_device->touch, NULL);
break;
case WLR_INPUT_DEVICE_TABLET_TOOL:
- wlr_device->tablet_tool = calloc(1, sizeof(struct wlr_tablet_tool));
- if (wlr_device->tablet_tool == NULL) {
- wlr_log(WLR_ERROR, "Unable to allocate wlr_tablet_tool");
+ wlr_device->tablet = calloc(1, sizeof(struct wlr_tablet));
+ if (wlr_device->tablet == NULL) {
+ wlr_log(WLR_ERROR, "Unable to allocate wlr_tablet");
goto error;
}
- wlr_tablet_tool_init(wlr_device->tablet_tool, NULL);
+ wlr_tablet_init(wlr_device->tablet, NULL);
break;
case WLR_INPUT_DEVICE_TABLET_PAD:
wlr_device->tablet_pad = calloc(1, sizeof(struct wlr_tablet_pad));