diff options
author | Tudor Brindus <me@tbrindus.ca> | 2021-08-15 16:08:56 -0400 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-08-15 23:26:51 +0200 |
commit | 0c19a2826632f5f0f9ac615b010d319f4cfa2c77 (patch) | |
tree | 845a2417451c5c355f3c17557e8b265bff7c202e /backend | |
parent | 3364eec07e91eb51f770f2f7d619a07d96c0b5c4 (diff) |
input/tablet: fix `wl_array_for_each` usage on tablet proximity
Looks like this instance was missed in
e035f2b9c42b39e3eff37d0fe98bfa6422877d7a.
Fixes #3110.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/libinput/tablet_tool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index b0427e5f..60208a87 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -286,9 +286,9 @@ void handle_tablet_tool_proximity(struct libinput_event *event, wl_container_of(wlr_dev->tablet, tablet, wlr_tablet); size_t i = 0; - struct wlr_libinput_tablet_tool *iter; - wl_array_for_each(iter, &tablet->tools) { - if (iter == tool) { + struct wlr_libinput_tablet_tool **tool_ptr; + wl_array_for_each(tool_ptr, &tablet->tools) { + if (*tool_ptr == tool) { array_remove_at(&tablet->tools, i * sizeof(tool), sizeof(tool)); break; } |