[PATCH v2 7/9] window: Allow to get xkb context from display

Jan Arne Petersen jpetersen at openismus.com
Thu Nov 15 02:29:51 PST 2012


From: Jan Arne Petersen <jpetersen at openismus.com>

Add display_get_xkb_context to get the xkb context from the display.

Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
---
 clients/window.c | 6 ++++++
 clients/window.h | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/clients/window.c b/clients/window.c
index a370c34..f1a303b 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4046,6 +4046,12 @@ display_get_serial(struct display *display)
 	return display->serial;
 }
 
+struct xkb_context *
+display_get_xkb_context(struct display *display)
+{
+	return display->xkb_context;
+}
+
 EGLDisplay
 display_get_egl_display(struct display *d)
 {
diff --git a/clients/window.h b/clients/window.h
index 6ba83b1..3003ef7 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -79,6 +79,9 @@ display_get_output(struct display *display);
 uint32_t
 display_get_serial(struct display *display);
 
+struct xkb_context *
+display_get_xkb_context(struct display *display);
+
 typedef void (*display_global_handler_t)(struct display *display,
 					 uint32_t name,
 					 const char *interface,
-- 
1.7.11.7



More information about the wayland-devel mailing list