diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2021-01-07 12:27:26 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2021-01-07 12:50:48 +0100 |
commit | 45ec3fc389195044beb89ade4bfc3d307709f304 (patch) | |
tree | 746e6dbe103ed47aad6e6f8cbd4e03d32f73455b /gdk/gdkseatdefault.c | |
parent | 0d99ef7cee14dbe57b1d670561d67856d9dcbd20 (diff) | |
download | gtk+-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.c | 2 |
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); |