summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-12-13 02:12:43 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-15 03:17:58 +0100
commitf5a20ab65a3d03fb90c27b2fa1954d965f8ad768 (patch)
tree7bc1cc9bca599dc71398d7d1af3d4669c8a60d1c /gdk/gdkinternals.h
parentc4a5c2ed4b8861f92104f51d9213b0c9f64e26b1 (diff)
downloadgtk+-f5a20ab65a3d03fb90c27b2fa1954d965f8ad768.tar.gz
Add gdk_event_[gs]et_source_device().
This function may be used to know the hardware device that triggered an event, it could resort to the master device in the few cases there's not a direct hardware device to relate to the event (i.e.: crossing events due to grabs)
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 8ade0c13a3..a897181d27 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -156,6 +156,7 @@ struct _GdkEventPrivate
GdkScreen *screen;
gpointer windowing_data;
GdkDevice *device;
+ GdkDevice *source_device;
};
/* Tracks information about the pointer grab on this display */
@@ -440,6 +441,7 @@ void _gdk_windowing_launch_failed (GAppLaunchContext *context,
void _gdk_display_device_grab_update (GdkDisplay *display,
GdkDevice *device,
+ GdkDevice *source_device,
gulong current_serial);
GdkDeviceGrabInfo *_gdk_display_get_last_device_grab (GdkDisplay *display,
GdkDevice *device);
@@ -498,6 +500,7 @@ void _gdk_synthesize_crossing_events (GdkDisplay *display,
GdkWindow *src,
GdkWindow *dest,
GdkDevice *device,
+ GdkDevice *source_device,
GdkCrossingMode mode,
gint toplevel_x,
gint toplevel_y,