Set xwayland cursor

This commit is contained in:
emersion 2018-03-31 00:13:26 -04:00
parent 212b503992
commit b237fa0b22
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 16 additions and 2 deletions

View file

@ -259,11 +259,11 @@ void sway_seat_remove_device(struct sway_seat *seat,
void sway_seat_configure_xcursor(struct sway_seat *seat) {
// TODO configure theme and size
const char *cursor_theme = "default";
const char *cursor_theme = NULL;
if (!seat->cursor->xcursor_manager) {
seat->cursor->xcursor_manager =
wlr_xcursor_manager_create("default", 24);
wlr_xcursor_manager_create(cursor_theme, 24);
if (sway_assert(seat->cursor->xcursor_manager,
"Cannot create XCursor manager for theme %s",
cursor_theme)) {