mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 18:40:40 -05:00
devices-xi2: Export function to translate event mask
This commit is contained in:
parent
884e13474b
commit
db6ddc4a7f
@ -64,8 +64,8 @@ meta_device_xi2_common_allow_events (MetaDevice *device,
|
||||
XIAllowEvents (display->xdisplay, device_id, mode, time);
|
||||
}
|
||||
|
||||
static guchar *
|
||||
translate_event_mask (guint evmask,
|
||||
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,
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user