aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-09-23 13:21:57 -0400
committerTony Crisci <tony@dubstepdish.com>2017-09-23 14:09:54 -0400
commit389559399830c89eee01028a9029f1f3a49a8455 (patch)
tree61e898e4dfcdb3a42ad00fc26557899557489422 /include/wlr
parent30b5d764265b689d6247a04e9bbef8efb0204e2f (diff)
wlr-seat: keyboard layout
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_seat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index 21f2350d..c6bab180 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -35,6 +35,9 @@ struct wlr_seat_keyboard_state {
struct wlr_seat_handle *focused_handle;
struct wlr_surface *focused_surface;
+ int keymap_fd;
+ size_t keymap_size;
+
struct wl_listener focus_surface_destroy_listener;
struct wl_listener focus_resource_destroy_listener;
};
@@ -150,4 +153,10 @@ void wlr_seat_keyboard_send_modifiers(struct wlr_seat *wlr_seat,
uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked,
uint32_t group);
+/**
+ * Set the keymap and send it to seat keyboard resources.
+ */
+void wlr_seat_keyboard_set_keymap(struct wlr_seat *wlr_seat, int keymap_fd,
+ size_t keymap_size);
+
#endif