summaryrefslogtreecommitdiff
path: root/gdk/gdkseatprivate.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-12-14 15:28:29 +1000
committerCarlos Garnacho <carlosg@gnome.org>2018-12-18 21:41:49 +0100
commit38cba6895a5749386954b6de3ac8a6723f4fc5db (patch)
tree5ed40d80176ac4b3095a99d2f1d2edcc97a63dde /gdk/gdkseatprivate.h
parente95e0458988821ce4d8915c243fa79398515ed27 (diff)
downloadgtk+-38cba6895a5749386954b6de3ac8a6723f4fc5db.tar.gz
x11: make the tool lookup dependent on the hw id as well
Tools on the same physical item have the same serial number, so the eraser and the pen part of a single pen share that serial number. With the current lookup code, we'll always return whichever tool comes first into proximity. Change the code to use the hw id in addition to the serial number, this way we can differ between two tools.
Diffstat (limited to 'gdk/gdkseatprivate.h')
-rw-r--r--gdk/gdkseatprivate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk/gdkseatprivate.h b/gdk/gdkseatprivate.h
index 97127dbfae..eaeecec8ff 100644
--- a/gdk/gdkseatprivate.h
+++ b/gdk/gdkseatprivate.h
@@ -57,7 +57,8 @@ struct _GdkSeatClass
GdkSeatCapabilities capabilities);
GdkDeviceTool * (* get_tool) (GdkSeat *seat,
- guint64 serial);
+ guint64 serial,
+ guint64 tool_id);
GList * (* get_master_pointers) (GdkSeat *seat,
GdkSeatCapabilities capabilities);
};
@@ -74,6 +75,7 @@ void gdk_seat_tool_removed (GdkSeat *seat,
GdkDeviceTool *
gdk_seat_get_tool (GdkSeat *seat,
- guint64 serial);
+ guint64 serial,
+ guint64 hw_id);
#endif /* __GDK_SEAT_PRIVATE_H__ */