diff options
| author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:03:05 +0200 | 
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:22:31 +0200 | 
| commit | bd67849c03a13b2a12d35fb068d30eb0f8ea3cc9 (patch) | |
| tree | b818ca1e9ac88ab3947123d2ea4c2bdeb8da6f20 /backend/libinput | |
| parent | a289940bff8bcda5cc6aeb1d88f4f1e5c2c38317 (diff) | |
| download | wlroots-bd67849c03a13b2a12d35fb068d30eb0f8ea3cc9.tar.xz | |
Refactor out wlr_tablet_tool_state
Diffstat (limited to 'backend/libinput')
| -rw-r--r-- | backend/libinput/tablet_tool.c | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index efe77f0a..8b3d34ed 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -10,7 +10,13 @@  struct wlr_tablet_tool *wlr_libinput_tablet_tool_create(  		struct libinput_device *libinput_dev) {  	assert(libinput_dev); -	return wlr_tablet_tool_create(NULL, NULL); +	struct wlr_tablet_tool *wlr_tablet_tool = calloc(1, sizeof(struct wlr_tablet_tool)); +	if (!wlr_tablet_tool) { +		wlr_log(L_ERROR, "Unable to allocate wlr_tablet_tool"); +		return NULL; +	} +	wlr_tablet_tool_init(wlr_tablet_tool, NULL); +	return wlr_tablet_tool;  }  void handle_tablet_tool_axis(struct libinput_event *event,  | 
