From 61e2ebac908c33cfaf06a53a09e829ac97eca400 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 8 Jul 2020 10:46:28 +0200 Subject: virtual-keyboard: add wlr_input_device_get_virtual_keyboard --- include/wlr/types/wlr_virtual_keyboard_v1.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_virtual_keyboard_v1.h b/include/wlr/types/wlr_virtual_keyboard_v1.h index 78f80fbb..a3f4e452 100644 --- a/include/wlr/types/wlr_virtual_keyboard_v1.h +++ b/include/wlr/types/wlr_virtual_keyboard_v1.h @@ -26,8 +26,8 @@ struct wlr_virtual_keyboard_manager_v1 { }; struct wlr_virtual_keyboard_v1 { - struct wl_resource *resource; struct wlr_input_device input_device; + struct wl_resource *resource; struct wlr_seat *seat; bool has_keymap; @@ -41,4 +41,7 @@ struct wlr_virtual_keyboard_v1 { struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create( struct wl_display *display); +struct wlr_virtual_keyboard_v1 *wlr_input_device_get_virtual_keyboard( + struct wlr_input_device *wlr_dev); + #endif -- cgit v1.2.3