mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
1st feedback pass
Rename make_ functions to _create Implement set_cursor and set_feedback
This commit is contained in:
parent
15870ceb4b
commit
31cec36b74
5 changed files with 167 additions and 41 deletions
|
|
@ -21,7 +21,11 @@ static void add_tablet_path(struct wl_list *list, const char *path) {
|
|||
}
|
||||
|
||||
tablet_path->path = strdup(path);
|
||||
assert(tablet_path->path);
|
||||
if (!tablet_path->path) {
|
||||
free(tablet_path);
|
||||
return;
|
||||
}
|
||||
|
||||
wl_list_insert(list, &tablet_path->link);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,11 +79,11 @@ struct wlr_tablet_tool *create_libinput_tablet_tool(
|
|||
assert(libinput_dev);
|
||||
struct wlr_libinput_tablet *libinput_tablet_tool =
|
||||
calloc(1, sizeof(struct wlr_libinput_tablet));
|
||||
struct wlr_tablet_tool *wlr_tablet_tool = &libinput_tablet_tool->wlr_tool;
|
||||
if (!wlr_tablet_tool) {
|
||||
if (!libinput_tablet_tool) {
|
||||
wlr_log(WLR_ERROR, "Unable to allocate wlr_tablet_tool");
|
||||
return NULL;
|
||||
}
|
||||
struct wlr_tablet_tool *wlr_tablet_tool = &libinput_tablet_tool->wlr_tool;
|
||||
|
||||
wl_list_init(&wlr_tablet_tool->paths);
|
||||
struct udev_device *udev = libinput_device_get_udev_device(libinput_dev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue