[mutter/wip/xinput2: 22/49] devices-xi2: Export function to translate event mask
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2: 22/49] devices-xi2: Export function to translate event mask
- Date: Fri, 15 Jul 2011 16:30:56 +0000 (UTC)
commit db6ddc4a7f5273659cee1adc03c916d0160412c5
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]