input/tablet: fix `wl_array_for_each` usage on tablet proximity

Looks like this instance was missed in
e035f2b9c4.

Fixes #3110.
This commit is contained in:
Tudor Brindus 2021-08-15 16:08:56 -04:00 committed by Kenny Levinsen
parent 3364eec07e
commit 0c19a28266
1 changed files with 3 additions and 3 deletions

View File

@ -286,9 +286,9 @@ void handle_tablet_tool_proximity(struct libinput_event *event,
wl_container_of(wlr_dev->tablet, tablet, wlr_tablet); wl_container_of(wlr_dev->tablet, tablet, wlr_tablet);
size_t i = 0; size_t i = 0;
struct wlr_libinput_tablet_tool *iter; struct wlr_libinput_tablet_tool **tool_ptr;
wl_array_for_each(iter, &tablet->tools) { wl_array_for_each(tool_ptr, &tablet->tools) {
if (iter == tool) { if (*tool_ptr == tool) {
array_remove_at(&tablet->tools, i * sizeof(tool), sizeof(tool)); array_remove_at(&tablet->tools, i * sizeof(tool), sizeof(tool));
break; break;
} }