diff options
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 178a975a..a6f9e9a0 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -26,6 +26,7 @@ #include "rootston/seat.h" #include "rootston/server.h" #include "rootston/view.h" +#include "rootston/virtual_keyboard.h" #include "rootston/xcursor.h" #include "wlr-layer-shell-unstable-v1-protocol.h" @@ -865,6 +866,12 @@ struct roots_desktop *desktop_create(struct roots_server *server, desktop->linux_dmabuf = wlr_linux_dmabuf_create(server->wl_display, server->renderer); + + desktop->virtual_keyboard = wlr_virtual_keyboard_manager_v1_create( + server->wl_display); + wl_signal_add(&desktop->virtual_keyboard->events.new_virtual_keyboard, + &desktop->virtual_keyboard_new); + desktop->virtual_keyboard_new.notify = handle_virtual_keyboard; return desktop; } |