From 7ef2c0a506046b029ab105eb7b2b190fe175228a Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 19 Sep 2023 05:09:50 -0400 Subject: cursor: Remove dead code This conditional would never fire because `cursor_output_cursor_reset_image` nulls the previous xcursor. --- types/wlr_cursor.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 8c995c22..108d95dc 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -555,10 +555,6 @@ static void cursor_output_cursor_update(struct wlr_cursor_output_cursor *output_ return; } - if (output_cursor->xcursor == xcursor) { - return; - } - output_cursor->xcursor = xcursor; output_cursor_set_xcursor_image(output_cursor, 0); } else { -- cgit v1.2.3