mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Use compositor theme for xwm cursor
This commit is contained in:
parent
ddd7b7711c
commit
3f4ad47421
5 changed files with 62 additions and 12 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue