summaryrefslogtreecommitdiff
path: root/gdk/gdkseatdefault.c
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <qignacio@amazon.com>2021-01-07 12:27:26 +0100
committerIgnacio Casal Quinteiro <qignacio@amazon.com>2021-01-07 12:50:48 +0100
commit45ec3fc389195044beb89ade4bfc3d307709f304 (patch)
tree746e6dbe103ed47aad6e6f8cbd4e03d32f73455b /gdk/gdkseatdefault.c
parent0d99ef7cee14dbe57b1d670561d67856d9dcbd20 (diff)
downloadgtk+-45ec3fc389195044beb89ade4bfc3d307709f304.tar.gz
seat: improve api to take into account the tool type
Otherwise if we have several tools with the same serial and hardware id we might match the wrong tool.
Diffstat (limited to 'gdk/gdkseatdefault.c')
-rw-r--r--gdk/gdkseatdefault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkseatdefault.c b/gdk/gdkseatdefault.c
index c9595bafdf..2226d36da1 100644
--- a/gdk/gdkseatdefault.c
+++ b/gdk/gdkseatdefault.c
@@ -442,7 +442,7 @@ gdk_seat_default_remove_tool (GdkSeatDefault *seat,
priv = gdk_seat_default_get_instance_private (seat);
- if (tool != gdk_seat_get_tool (GDK_SEAT (seat), tool->serial, tool->hw_id))
+ if (tool != gdk_seat_get_tool (GDK_SEAT (seat), tool->serial, tool->hw_id, tool->type))
return;
g_signal_emit_by_name (seat, "tool-removed", tool);