return;
}
- wlr_xcursor_manager_set_cursor_image(
- seat->xcursor_manager, cursor_names[cursor], seat->cursor);
+ wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager,
+ cursor_names[cursor]);
seat->server_cursor = cursor;
}
}
return;
}
- wlr_xcursor_manager_set_cursor_image(
- seat->xcursor_manager, cursor_names[cursor], seat->cursor);
+ /*
+ * Call wlr_cursor_unset_image() first to force wlroots to
+ * update the cursor (e.g. for a new output). Otherwise,
+ * wlr_cursor_set_xcursor() may detect that we are setting the
+ * same cursor as before, and do nothing.
+ */
+ wlr_cursor_unset_image(seat->cursor);
+ wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager,
+ cursor_names[cursor]);
}
bool
[wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
-revision = 70c1a5724814d2f786f7d3a0e55a05f11af14029
+revision = 18bafbfc57039e16d1dabd78b882b3d6477f76b5
[provide]
dependency_names = wlroots