cursor: update output cursor even if output is disabled

During suspend, we first disable output and then remove the input device.
This causes cursor->state->surface released while cursor->texture leaves.
Which leads to use-after-free after resume.
This commit is contained in:
liupeng 2025-07-23 10:53:42 +08:00 committed by Simon Ser
parent 80c7e0f772
commit be5e266211

View file

@ -530,10 +530,6 @@ static void cursor_output_cursor_update(struct wlr_cursor_output_cursor *output_
struct wlr_cursor *cur = output_cursor->cursor;
struct wlr_output *output = output_cursor->output_cursor->output;
if (!output->enabled) {
return;
}
cursor_output_cursor_reset_image(output_cursor);
if (cur->state->buffer != NULL) {