[mutter] display: Expose the xinput opcode



commit 90cf43da9f0002ca4de272c3faa2bb8a338dfeef
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 20 21:30:49 2012 -0500

    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

 src/core/display.c |   10 ++++++++++
 src/meta/display.h |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 68ffa0e..89fa8cf 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -5678,6 +5678,16 @@ meta_display_get_compositor_version (MetaDisplay *display,
 }
 
 /**
+ * meta_display_get_xinput_opcode: (skip)
+ *
+ */
+int
+meta_display_get_xinput_opcode (MetaDisplay *display)
+{
+  return display->xinput_opcode;
+}
+
+/**
  * meta_display_get_xdisplay: (skip)
  *
  */
diff --git a/src/meta/display.h b/src/meta/display.h
index 8dc3dac..ad1e2fd 100644
--- a/src/meta/display.h
+++ b/src/meta/display.h
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]