[mutter/wip/xinput2r: 25/68] devices-xi2: Export function to translate event mask
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2r: 25/68] devices-xi2: Export function to translate event mask
- Date: Wed, 24 Oct 2012 16:11:25 +0000 (UTC)
commit 6b665589417059c08acb564f90e7933236c51886
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jun 12 21:20:40 2011 +0200
devices-xi2: Export function to translate event mask
src/core/devices-xi2.c | 8 ++++----
src/core/devices-xi2.h | 5 +++++
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/core/devices-xi2.c b/src/core/devices-xi2.c
index 00c8ffc..f50d205 100644
--- a/src/core/devices-xi2.c
+++ b/src/core/devices-xi2.c
@@ -64,9 +64,9 @@ meta_device_xi2_common_allow_events (MetaDevice *device,
XIAllowEvents (display->xdisplay, device_id, mode, time);
}
-static guchar *
-translate_event_mask (guint evmask,
- gint *len)
+guchar *
+meta_device_xi2_translate_event_mask (guint evmask,
+ gint *len)
{
guchar *mask;
@@ -119,7 +119,7 @@ meta_device_xi2_common_grab (MetaDevice *device,
xcursor = meta_display_create_x_cursor (display, cursor);
mask.deviceid = device_id;
- mask.mask = translate_event_mask (evmask, &mask.mask_len);
+ mask.mask = meta_device_xi2_translate_event_mask (evmask, &mask.mask_len);
retval = XIGrabDevice (display->xdisplay,
device_id, xwindow,
diff --git a/src/core/devices-xi2.h b/src/core/devices-xi2.h
index bc9fbdc..25f0f98 100644
--- a/src/core/devices-xi2.h
+++ b/src/core/devices-xi2.h
@@ -84,4 +84,9 @@ GType meta_device_keyboard_xi2_get_type (void) G_GNUC_CONST;
MetaDevice *meta_device_keyboard_xi2_new (MetaDisplay *display,
gint device_id);
+/* Helper function for translating event masks */
+guchar * meta_device_xi2_translate_event_mask (guint evmask,
+ gint *len);
+
+
#endif /* META_DEVICES_XI2_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]