diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-02 12:28:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 12:28:31 -0400 |
commit | 62734d05535bd0137f3239f3d7639438961868fe (patch) | |
tree | c19f95400b1529ba32148755b038e7db386c8d8e /rootston | |
parent | 2d4e02969dd5ec208bbd36adab0ae1e6fc028638 (diff) | |
parent | 900fb326f7608695a160a2ce645db94f33df7f87 (diff) | |
download | wlroots-62734d05535bd0137f3239f3d7639438961868fe.tar.xz |
Merge pull request #380 from emersion/xwayland-root-cursor
Set xwayland root cursor
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/input.c | 9 |
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"); |