aboutsummaryrefslogtreecommitdiff
path: root/rootston/input.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-02 23:34:02 -0400
committerDrew DeVault <sir@cmpwn.com>2017-11-02 23:34:02 -0400
commit86b87299986a430a52b4eac3f2e0e7b659176c90 (patch)
treeac8523d64c6b2faa8d7156093c8dc8f6998301b7 /rootston/input.c
parent975b9dc365d5a7bec531522320a1506323575525 (diff)
parentec11a95d0c945d138cede66b7c6e53e343c82f8f (diff)
Merge remote-tracking branch 'origin/master' into hidpi
Diffstat (limited to 'rootston/input.c')
-rw-r--r--rootston/input.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rootston/input.c b/rootston/input.c
index 8109d2b6..5d367a5e 100644
--- a/rootston/input.c
+++ b/rootston/input.c
@@ -4,6 +4,7 @@
#include <wlr/types/wlr_cursor.h>
#include <wlr/util/log.h>
#include <wlr/xcursor.h>
+#include <wlr/xwayland.h>
#include "rootston/server.h"
#include "rootston/config.h"
#include "rootston/input.h"
@@ -96,6 +97,14 @@ struct roots_input *input_create(struct roots_server *server,
return NULL;
}
+ if (server->desktop->xwayland != NULL) {
+ struct wlr_xcursor_image *xcursor_image = xcursor->images[0];
+ wlr_xwayland_set_cursor(server->desktop->xwayland,
+ xcursor_image->buffer, xcursor_image->width, xcursor_image->width,
+ xcursor_image->height, xcursor_image->hotspot_x,
+ xcursor_image->hotspot_y);
+ }
+
input->wl_seat = wlr_seat_create(server->wl_display, "seat0");
if (input->wl_seat == NULL) {
wlr_log(L_ERROR, "Cannot create seat");