Invert wlr_xcursor_manager_load return value

This commit is contained in:
project-repo 2020-09-11 17:27:42 +02:00
commit 80ada7d14b
2 changed files with 2 additions and 2 deletions

View file

@ -482,7 +482,7 @@ main(int argc, char *argv[]) {
xwayland->display_name);
}
if(wlr_xcursor_manager_load(xcursor_manager, 1)) {
if(!wlr_xcursor_manager_load(xcursor_manager, 1)) {
wlr_log(WLR_ERROR, "Cannot load XWayland XCursor theme");
}
struct wlr_xcursor *xcursor =

View file

@ -594,7 +594,7 @@ handle_new_output(struct wl_listener *listener, void *data) {
output->curr_workspace = 0;
wl_list_init(&output->messages);
if(wlr_xcursor_manager_load(server->seat->xcursor_manager,
if(!wlr_xcursor_manager_load(server->seat->xcursor_manager,
wlr_output->scale)) {
wlr_log(WLR_ERROR,
"Cannot load XCursor theme for output '%s' with scale %f",