aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-29 18:22:44 +0100
committerGitHub <noreply@github.com>2018-05-29 18:22:44 +0100
commite1f56538a8862f05cc9ad1d44cd47bc6ed5e6387 (patch)
tree49d378a4cd90cde1aabc5d6d3ccbefde16126997 /include/rootston
parent3444f43c16e49ad64fa6f1f11be7baf16b3bf49c (diff)
parent5334ee8bfd93b2bfdc077f422b87c2509f04d5d4 (diff)
Merge pull request #999 from dcz-purism/virtual-keyboard
Support virtual keyboard protocol
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/desktop.h3
-rw-r--r--include/rootston/virtual_keyboard.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index 83ff2ea8..bb7d2084 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -14,6 +14,7 @@
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_primary_selection.h>
#include <wlr/types/wlr_screenshooter.h>
+#include <wlr/types/wlr_virtual_keyboard_v1.h>
#include <wlr/types/wlr_wl_shell.h>
#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
@@ -51,6 +52,7 @@ struct roots_desktop {
struct wlr_input_inhibit_manager *input_inhibit;
struct wlr_linux_dmabuf *linux_dmabuf;
struct wlr_layer_shell *layer_shell;
+ struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard;
struct wl_listener new_output;
struct wl_listener layout_change;
@@ -61,6 +63,7 @@ struct roots_desktop {
struct wl_listener decoration_new;
struct wl_listener input_inhibit_activate;
struct wl_listener input_inhibit_deactivate;
+ struct wl_listener virtual_keyboard_new;
#ifdef WLR_HAS_XWAYLAND
struct wlr_xwayland *xwayland;
diff --git a/include/rootston/virtual_keyboard.h b/include/rootston/virtual_keyboard.h
new file mode 100644
index 00000000..613e5595
--- /dev/null
+++ b/include/rootston/virtual_keyboard.h
@@ -0,0 +1,7 @@
+#ifndef ROOTSTON_VIRTUAL_KEYBOARD_H
+#define ROOTSTON_VIRTUAL_KEYBOARD_H
+
+#include <wayland-server-core.h>
+
+void handle_virtual_keyboard(struct wl_listener *listener, void *data);
+#endif