display: Expose the xinput opcode

This is needed by the shell to filter out certain events

https://bugzilla.gnome.org/show_bug.cgi?id=690590
This commit is contained in:
Jasper St. Pierre 2012-12-20 21:30:49 -05:00
parent bab51cbbe4
commit 90cf43da9f
2 changed files with 11 additions and 0 deletions

View File

@ -5677,6 +5677,16 @@ meta_display_get_compositor_version (MetaDisplay *display,
*minor = display->composite_minor_version;
}
/**
* meta_display_get_xinput_opcode: (skip)
*
*/
int
meta_display_get_xinput_opcode (MetaDisplay *display)
{
return display->xinput_opcode;
}
/**
* meta_display_get_xdisplay: (skip)
*

View File

@ -67,6 +67,7 @@ typedef enum
void meta_display_get_compositor_version (MetaDisplay *display,
int *major,
int *minor);
int meta_display_get_xinput_opcode (MetaDisplay *display);
Display *meta_display_get_xdisplay (MetaDisplay *display);
MetaCompositor *meta_display_get_compositor (MetaDisplay *display);
GSList *meta_display_get_screens (MetaDisplay *display);