window: Allow to get xkb context from display

Add display_get_xkb_context to get the xkb context from the display.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
dev
Jan Arne Petersen 12 years ago committed by Kristian Høgsberg
parent 257201d2cc
commit c31288daf1
  1. 6
      clients/window.c
  2. 3
      clients/window.h

@ -4024,6 +4024,12 @@ display_get_serial(struct display *display)
return display->serial; return display->serial;
} }
struct xkb_context *
display_get_xkb_context(struct display *display)
{
return display->xkb_context;
}
EGLDisplay EGLDisplay
display_get_egl_display(struct display *d) display_get_egl_display(struct display *d)
{ {

@ -79,6 +79,9 @@ display_get_output(struct display *display);
uint32_t uint32_t
display_get_serial(struct display *display); 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, typedef void (*display_global_handler_t)(struct display *display,
uint32_t name, uint32_t name,
const char *interface, const char *interface,

Loading…
Cancel
Save