aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorrandom human <random.bored.human@gmail.com>2018-09-18 03:47:33 +0530
committerrandom human <random.bored.human@gmail.com>2018-09-18 13:58:36 +0530
commit40a43003a137ca53ccc19256fdc8847d28ee6148 (patch)
tree21a1c4a413dc155dc906f6918f63c163b11d3599 /include/wlr
parent8b112730ca8f6abeb3f941dc578b3598878e5480 (diff)
Send unique keymap file descriptors
To prevent wl_keyboard keymap being written to by clients, use a unique file descriptor for each wl_keyboard resource. Reference: weston, commit 76829fc4eaea329d2a525c3978271e13bd76c078
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_keyboard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index 3e207523..ae279541 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -50,7 +50,7 @@ struct wlr_keyboard_modifiers {
struct wlr_keyboard {
const struct wlr_keyboard_impl *impl;
- int keymap_fd;
+ char *keymap_string;
size_t keymap_size;
struct xkb_keymap *keymap;
struct xkb_state *xkb_state;