mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-28 07:58:59 -04:00
virtual-keyboard: add wlr_virtual_keyboard_v1_from_resource()
I want to use the zwp_virtual_keyboard_v1 object in a custom river
protocol and need to be able to obtain the corresponding wlroots struct.
(cherry picked from commit ec746d3e3e)
This commit is contained in:
parent
47a43e14ae
commit
6a902237ef
2 changed files with 16 additions and 5 deletions
|
|
@ -38,7 +38,18 @@ struct wlr_virtual_keyboard_v1 {
|
|||
struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create(
|
||||
struct wl_display *display);
|
||||
|
||||
/**
|
||||
* Get the struct wlr_virtual_keyboard_v1 corresponding to a zwp_virtual_keyboard_v1 resource.
|
||||
*
|
||||
* Asserts that the resource is a valid zwp_virtual_keyboard_v1 resource created by wlroots.
|
||||
*
|
||||
* Returns NULL if the resource is inert.
|
||||
*/
|
||||
struct wlr_virtual_keyboard_v1 *wlr_virtual_keyboard_v1_from_resource(
|
||||
struct wl_resource *resource);
|
||||
|
||||
struct wlr_virtual_keyboard_v1 *wlr_input_device_get_virtual_keyboard(
|
||||
struct wlr_input_device *wlr_dev);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue