diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-01-06 14:44:15 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-04-06 15:43:29 +0200 |
commit | d5f141a9b7e85272b6042d2be6a6bcd09a825bd3 (patch) | |
tree | 9ae1afe0b2b2d7869cfcfc4c72cce3160cc7018d /gdk/gdkdeviceprivate.h | |
parent | 4ba95b09ba1b42aba68335d4a2df021cd58a5a32 (diff) | |
download | gtk+-d5f141a9b7e85272b6042d2be6a6bcd09a825bd3.tar.gz |
gdkdevice: Add GdkDevice::tool-changed signal
On the devices and backends that support it, this signal will be emitted
on slave/floating devices whenever the tool they are interacting with
changes. These notifications may also work as a sort of proximity events,
as the tool will be unset when the pen moves too far.
For backends, gdk_device_update_tool() has been included, all that should
be done on their side is just calling this whenever any tool might have
changed.
Diffstat (limited to 'gdk/gdkdeviceprivate.h')
-rw-r--r-- | gdk/gdkdeviceprivate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h index a0dad3ce46..52ee6c69ef 100644 --- a/gdk/gdkdeviceprivate.h +++ b/gdk/gdkdeviceprivate.h @@ -76,6 +76,7 @@ struct _GdkDevice gchar *product_id; GdkSeat *seat; + GdkDeviceTool *last_tool; }; struct _GdkDeviceClass @@ -198,6 +199,8 @@ void gdk_device_set_seat (GdkDevice *device, /* Device tools */ GdkDeviceTool *gdk_device_tool_new (guint64 serial); +void gdk_device_update_tool (GdkDevice *device, + GdkDeviceTool *tool); G_END_DECLS |