From 32cfbc3dffaef9c5a55bef3bcc764625a618cabb Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Thu, 16 Jul 2020 15:21:17 +0200 Subject: [PATCH] Invert wlr_xcursor_manager_load return value --- cage.c | 2 +- output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cage.c b/cage.c index 6853587..d3741dd 100644 --- a/cage.c +++ b/cage.c @@ -449,7 +449,7 @@ main(int argc, char *argv[]) wlr_log(WLR_DEBUG, "XWayland is running on display %s", 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 = wlr_xcursor_manager_get_xcursor(xcursor_manager, DEFAULT_XCURSOR, 1); diff --git a/output.c b/output.c index 96f915c..e162af9 100644 --- a/output.c +++ b/output.c @@ -474,7 +474,7 @@ handle_new_output(struct wl_listener *listener, void *data) } } - if (wlr_xcursor_manager_load(server->seat->xcursor_manager, wlr_output->scale)) { + 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", wlr_output->name, wlr_output->scale); }